hello,
je voudrais configurer sudo pour qu’il autorise l’utilisateur pierre à utiliser apt-get et à éteindre/redémarrer l’ordinateur.
J’ai déjà configuré mon fichier /etc/sudoers d’après le tuto qu’il y a sur ce forum, ça marchait sur le coup mais après un reboot ça ne marche plus.
voici mon fichier /etc/sudoers[code]# /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
Uncomment to allow members of group sudo to not need a password
%sudo ALL=NOPASSWD: ALL
Host alias specification
Host_Alias LOCALNET = 192.168.0.0/24, localhost
User alias specification
User_Alias ADMIN_TEAM = pierre
Cmnd alias specification
Cmnd_Alias DEBIAN_TOOLS = /usr/bin/apt-get, /usr/bin/auto-apt, \
/usr/bin/dpkg, /usr/bin/dselect, /usr/sbin/dpkg-reconfigure, /usr/sbin/halt, /usr/sbin/reboot
User privilege specification
root ALL=(ALL) ALL
ADMIN_TEAM LOCALNET = NOPASSWD: DEBIAN_TOOLS[/code]Donc comment faire pour que ça marche tout le temps?
merci d’avance