hi
I have Ubuntu 10.10.
Howto allow normal user shutdown and restart without password?
hi
I have Ubuntu 10.10.
Howto allow normal user shutdown and restart without password?
I added these lines in /etc/sudoers:but this problem still exists.Code:# cat /etc/sudoers # /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 # Host alias specification # User alias specification User_Alias USERS = ubuntuuser # Cmnd alias specification Cmnd_Alias SHUTDOWN_CMDS = /sbin/shutdown, /sbin/reboot, /sbin/halt # User privilege specification root ALL=(ALL) ALL # Allow members of group sudo to execute any command # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=(ALL) ALL # #includedir /etc/sudoers.d # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL USERS ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS
Last edited by cccc; January 29th, 2011 at 04:43 AM.
What's your specific goal here? I mean, obviously, you can do these things without a password through the GUI, so why do you need them in CLI?
I know I shouldn't use tildes for decoration, but they always make me feel at home~
You'd still have to use sudo, it just won't prompt you for your password.
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide
Tomorrow's an illusion and yesterday's a dream, today is a solution...
Bookmarks