Bonjour,
je voudrais exécuter les commandes
1 2 3
|
/sbin/reboot
/usr/sbin/pm-suspend |
j'ai édité le fichier /etc/sudoers comme ceci
voici le nouveau fichier /etc/sudoers avec la commande 'cat'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| # /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
paissad ALL=NOPASSWD: /usr/sbin/pm-suspend
paissad ALL=NOPASSWD: /sbin/reboot
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL |
mais ça ne mache toujours pas lorsque je veux exécuter la commande root en tant que user !
par ailleurs, c'est mal de faire ceci
sudo chown paissad:root /sbin/reboot
mais ça n'aide pas non plus ....
si quelqu'un peut m'aider, ce serait cool
merci d'avance
Partager