Page 1 of 1

FluxBox: shutdown and rebooting demand password - how to ...

Posted: Wed Nov 05, 2008 3:40 pm
by Windows
FluxBox: shutdown and reboot operations demand password. It is very uncomfortable for our many users. Please help, how to disable it?!
Adding users to the "Shutdown/rebooting the system" policy doesn't help!

Re: FluxBox: shutdown and rebooting demand password - how to ...

Posted: Thu Nov 06, 2008 8:10 am
by Husse
Sorry - that's something you have to live with. I don't remember the reason but it is very hard to get rid of this behavior, at least without breaking something else

Re: FluxBox: shutdown and rebooting demand password - how to

Posted: Fri Oct 14, 2011 9:47 am
by smitt matsiko
I had the same challenge, this is how i simplified it quickly..
First add the user to SudoUsers:
as root edit the file; #visudo
Add the following(substitute %users with the user)
%users ALL= NOPASSWD: /sbin/shutdown


Now edit ~/.fluxbox/menu(this is a symbolic link to /etc/X11/fluxbox/fluxbox-menu)
I prefer editing /etc/X11/fluxbox/fluxbox-menu
Append this line in the menu position of your choice between [begin] (fluxbox) and [end]
[exec] (Shutdown) {sudo /sbin/shutdown -hP now}
enjoy :D