how to disable shutdown and restart from system panel in gnome

Asked by Tuyen Nguyen

I tried both ubuntu desktop and server but result is the same. My end user connect to server through hummingbird exceed or nxclient. It brings up desktop on their end. Problem is there is shutdown and restart options appear in system panel that end user can bring down or reboot server. Is there a way that I can disable these options from end user when they connect to server through X? I have been googling last 3 weeks and found no answer.

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Simon Déziel (sdeziel) said :
#1

To do what you want, I think you could use gconf-editor. See that link : http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/desktop-guide/ch-ddg-lockdown.html

Revision history for this message
Sam_ (and-sam) said :
#2

Options:
gconf-editor
/apps/gnome-power-manager/buttons
instead of
power = interactive
it's
power = nothing

Far better choice is to use PolicyKit (in system administration menu)
and prevent user from actions.
CLI:
polkit-gnome-authorization

Section: power-management
e.g.
sub section
shutdown the system

e.g.
instead of
acitve console = yes
it's
acitve console = Admin authentication

https://wiki.ubuntu.com/DesktopTeam/Specs/PolicyKitIntegration
http://hal.freedesktop.org/docs/PolicyKit/

Revision history for this message
Tuyen Nguyen (tuyen) said :
#3

This will take away logout object from menu panel. My question is how
to only remove shutdown and restart object from menu panel.

On Sat, 2009-09-26 at 01:38 +0000, Simon Déziel wrote:
> Your question #83825 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/83825
>
> Status: Open => Answered
>
> Simon Déziel proposed the following answer:
> To do what you want, I think you could use gconf-editor. See that link :
> http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/desktop-
> guide/ch-ddg-lockdown.html
>

Revision history for this message
Sam_ (and-sam) said :
#4

You may disable shutdown/restart menu or buttons as suggested and create a separate starter on the panel, so the user can only logout.
Since Jaunty 9.04 the cmd would be
e.g.
gnome-session-save --logout --gui
##shows dialog for logout and user switch

gnome-session-save --shutdown-dialog --gui
##shows dialog for shutdown, restart ...

Can you help with this problem?

Provide an answer of your own, or ask Tuyen Nguyen for more information if necessary.

To post a message you must log in.