You must configure sudoers to allow usr domotique to execute nmap and systemctl restart presenceD.service
/etc/sudoers:
Cmnd_Alias DOM = /usr/bin/nmap, /usr/bin/systemctl restart presenceD.service
domotique ALL=(ALL) NOPASSWD: DOM
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.