meta données pour cette page
  •  

Sudo

Cet outil permet de fournir des droits d'exécutions administrateur à des utilisateurs.


Exemples

cat /etc/sudoers.d/nt
User_Alias NT = wildfly
Cmnd_Alias NT_CMD = sudoedit /etc/filebeat/*, /bin/systemctl restart filebeat, /bin/systemctl stop filebeat, /bin/systemctl start filebeat, /usr/bin/filebeat
NT ALL=NOPASSWD: NT_CMD

Cmnd_Alias MELTOO_SERVICE = /bin/systemctl start meltoo, /bin/systemctl start meltoo.service, /bin/systemctl restart meltoo, /bin/systemctl restart meltoo.service, /bin/systemctl stop meltoo, /bin/systemctl stop meltoo.service, /bin/systemctl status meltoo, /bin/systemctl status meltoo.service
NT ALL = NOPASSWD: MELTOO_SERVICE