December 12, 2017, 02:09:17 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Adding Shutdown to Fluxbox menu  (Read 2032 times)

Offline vfeast

  • New Member
  • Posts: 2
Adding Shutdown to Fluxbox menu
« on: February 03, 2009, 07:51:19 AM »
QUICKFACTS: I'm running the latest version of Fluxbox on openSUSE 11.1 with KDE4.1 installed as my .. base, I guess it's called. Now;

I've tried all the examples I found while searching google, including ones from this site. (sorry about posting a new topic, but the other ones were dead) My question is about adding a Shutdown option to the fluxbox menu. I've tried editing using visudo and adding my username, like:

myusername ALL=(ALL) ALL

saving the file, and then adding:

[exec] (Shutdown) {sudo shutdown -P now}

to my Fluxbox menu. It does nothing.
THEN I added myself to the "users" group and tried editing the /etc/sudoers with visudo, and saving this:

# User privilege specification
root ALL=(ALL) ALL

# Members of group may gain root privileges
%myusername ALL=(ALL) ALL

# Poweroff and reboot for all users
%users ALL= NOPASSWD: /sbin/shutdown
%users ALL= NOPASSWD: /sbin/reboot


with the same Fluxbox menu command of sudo shutdown -P now. Still nothing. I've reloaded the config and even restarted the computer (by way of Exit, and then Restart from the login menu). So, I'm somewhat at a loss here. I even tried downloading KShutdown but it doesn't work outside of KDE..