Shutdown issue with Fluxbox

mjjzf
Posts: 17
Joined: 2007-12-18
Member

There is a problem with shutting down from Fluxbox after having installed Wolvix. The shortcut in the Fluxbox menu is simply 'shutdown -h now' and 'shutdown -r now'.
However, once it is installed and you create a new user, these shortcuts no longer work, as you are no longer operating as root. So, I suggest changing these shortcuts to:
[exec] (Reboot Computer) {sudo /sbin/shutdown -r now} (and the graphics)
[exec] (Shutdown Computer) {sudo /sbin/shutdown -h now} (and the graphics)

- while adding to /etc/sudoers:
%users ALL = NOPASSWD:/sbin/shutdown