I'd like to shutdown my computer via Kcron job, but when I type sudo shutdown -h now, or sudo halt/reboot it still ask me for a password.
this is my /etc/sudoers file:
As you can see, I've tried other stuff too (username: andi/%admin, Cmnd Alias etc) but nothing worked.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 # User alias specification # Cmnd alias specification #Cmnd_Alias SYSTEM = /sbin/shutdown, /sbin/halt, /sbin/reboot, /sbin/poweroff # User privilege specification root ALL=(ALL) ALL %admin ALL = (ALL) NOPASSWD:/sbin/shutdown -hP now # Members of the admin group may gain root privileges # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
I am running Kubuntu 8.04, KDE 3.59
Linux andibuntu 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
There must be a solution ey?