I'm using a desktop as both a router for my local network and as a normal desktop with multiple users. I have Maverick running on it. Occasionally, one of the desktop users will accidentally press Shutdown, Restart, Suspend, or Hibernate, leading to me having to fix the network at random times of day. I know how to restart and shutdown from the command line. I do not need the GUI interface.
How can I remove the Shutdown, Suspend, Restart, and Hibernate options form the user switcher menu? All the I want left is the "Lock Screen", "Guest Session", List of users and "Logout" left.
A system wide solution would be best, but I can do one on each user if necessary.
Best Answer
Option 1:
Install gconf-editor, run
gksu gconf-editor
and on /apps/indicator-session/ supress the restart and shutdown.I'm not sure about suspend and hibernate, maybe changing
<allow_active>
tono
on/usr/share/polkit-1/actions/org.freedesktop.upower.policy
will do the trick.Option 2:
Remove the Indicator session package and add desktop shortcuts to logout and locking the screen.
The command to logout is
gnome-session-save --logout-dialog
and to lock the screen usegnome-screensaver-command --lock
.