Hallo zusammen,
ich versuche für einen Benutzer (der auch der Hauptbenutzer ist) den shutdown-Befehl so zu gestalten, dass nicht nach dem sudo-Passwort gefragt wird.
Also habe ich wie im Wiki vorgegeben mittels
sudo visudo
die Rechte entsprechend angepasst.
# /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 Defaults !lecture,tty_tickets,!fqdn # Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL # Host alias specification # User alias specification User_Alias ABSCHALTER = klaus # Cmnd alias specification Cmnd_Alias DOWN = /sbin/shutdown, /sbin/reboot # User privilege specification ABSCHALTER ALL = NOPASSWD: DOWN root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
Doch wenn ich als Haupt-Nutzer "klaus" den Befehl
sudo shutdown -h now
eingebe, werde ich immer noch nach dem Passwort gefragt. Woran kann das liegen? Was mache ich falsch?
Grüße, Apollo