Originally Posted by
LewisTM
Excellent! Please mark as SOLVED.
No! It's a really terrible OS.
I WANT to halt automatically from command line without password! I WANT, because I NEED (I mean crontab and $ ... && sudo halt). It is also impossible still yesterday, because xfce4-session-logout --halt asks the password again. I hate it.
I tried to edit sudoers AGAIN, but it doesn't work of course. No way.
For example:
Code:
User_Alias SHUTDOWNUSERS = user
Cmnd_Alias SHUTDOWNCNMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt
SHUTDOWNUSERS SHUTDOWNCMNDS = NOPASSWD: SHUTDOWNCMNDS
<esc>:wq
visudo: Warning: Host_Alias `SHUTDOWNCMNDS' referenced but not defined
BUT THERE IS NOT DEFINED OR REFERENCED ANY Host_Alias! I HAVE GOT User_Alias and Cmnd_Alias ONLY.
Of course I tried any other way using something like this:
Code:
user ALL=(ALL:ALL) NOPASSWD: ALL
It asks passwd any way.
Can I get help?
Bookmarks