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

Forum rules
Before you post please read how to get help
Post Reply
Windows
Level 1
Level 1
Posts: 14
Joined: Tue Nov 04, 2008 2:56 pm

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

Post 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!
Husse
Level 23
Level 23
Posts: 18677
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

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

Post 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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
smitt matsiko
Level 1
Level 1
Posts: 1
Joined: Fri Oct 14, 2011 9:41 am

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

Post 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
Post Reply

Return to “Others”