LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Wolvix - Shutdown won't work in Fluxbox Session (https://www.linuxquestions.org/questions/slackware-14/wolvix-shutdown-wont-work-in-fluxbox-session-617472/)

BarkingPerci 01-30-2008 02:44 PM

Wolvix - Shutdown won't work in Fluxbox Session
 
Since there is not Wolvix subforum I have come here to bug you all. I gave Wolvix a try to get some ideas since I had planned to do a Slackware install setup with Fluxbox as the WM. I liked it so much that I installed it to the HD and I plan to live and learn with it a while before attempting my own install.

For some reason while in a fluxbox session the menu commands to Restart or Shutdown do not work. They won't even ask me for my root pw. I can perform the commands from the Terminal as SU (shutdown -r and shutdown -s iirc), but as a normal user clicking on these menu commands does absolutely nothing. I had copied over my .fluxbox menu config files from root to user assuming it was a result of a poorly generated menu. No dice.

These shutdown options do work from a normal user XFCE session, but I want to use Fluxbox primarily.

Does anyone know what the problem is and have any potential solution? Even if I was prompted for the root pw I'd be happy. Thanks so much.

Dinithion 01-30-2008 04:14 PM

Fluxbox doesn't really have a shutdown function, as I recall. (And I cant find anything in the the man page either).
Could you print the shutdown menu item of your .fluxbox/menu file?

dive 01-30-2008 05:54 PM

As far as I remember the only menu entry was 'exit' which shutdown the x server. Don't remember an entry to shutdown computer, but it is possible to make one. You will need to use visudo to edit your sudoers file and make an entry like:

%users localhost=/sbin/shutdown -h now

or

dive ALL = NOPASSWD: /sbin/shutdown -h now

man sudoers
man visudo

dracolich 01-30-2008 06:17 PM

Or, if you don't mind typing root's password every time you shutdown you can create a menu entry with the following command
Code:

xterm -e su -c /sbin/shutdown -h now

dive 01-30-2008 09:09 PM

Or, you could try adding yourself to power group:

useradd -G power barkinperci


All times are GMT -5. The time now is 06:15 PM.