hi, ich möchte gerne mit meinem benutzeraccount den rechner ohne eingabe des passworts herunterfahren. jetzt habe ich zuerst die /etc/sudoers modifiziert:
dlewando@nc-myth:~$ sudo cat /etc/sudoers [sudo] password for dlewando: # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification Cmnd_Alias SYS = /sbin/shutdown # User privilege specification root ALL=(ALL:ALL) ALL dlewando ALL=(root) NOPASSWD: SYS # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d
bei eingabe von
dlewando@nc-myth:~$ sudo shutdown -h 0 [sudo] password for dlewando:
werde ich trotzdem nach dem pw gefragt
danach habe ich die möglichkeit eine /etc/shutdown.allow mit meinem benutzernamen anzulegen versucht
dlewando@nc-myth:~$ cat /etc/shutdown.allow dlewando dlewando@nc-myth:~$ dlewando@nc-myth:~$ sudo shutdown -h 0 [sudo] password for dlewando:
werde ich ebenfalls trotzdem nach dem pw gefragt
einer ne ahnung, warum das nicht geht?