| View previous topic :: View next topic |
| Author |
Message |
MarkKnecht Newbie

Joined: 07 Oct 2006 Posts: 11
|
Posted: Sat Oct 07, 2006 1:20 pm Post subject: Need to remove 'Shutdown' from Desktop menu in panel |
|
|
Hi,
Since Gnome-2.14 it seems that a shutdown option was added to the Desktop menu. As an admin for our home network I don't want anyone shutting machines down unless I know about it. How can I completely remove the Shutdown option from the desktop menu in Gnome panel?
We use Gnome in our home on machines that are both simple desktop machines as well as servers for things like MythTV. My wife uses Gnome now. My son has LAN parties with friends playing games using Cedega. If someone makes a mistake and hits the shutdown button then we lose our recordings, access to printers, etc.
Barring the ability to remove the icon how can I at least force it to ask for a password?
Thanks,
Mark
P.S. - This looks like a great forum. Thanks for running it. I have searched around for a previous answer to this question but haven't found it yet. Thanks! |
|
| Back to top |
|
 |
Bosko Dedicated User

Joined: 04 Nov 2002 Posts: 191 Location: The Netherlands
|
Posted: Sat Oct 07, 2006 6:31 pm Post subject: |
|
|
It's very easy, simple set the gconf option /apps/panel/global/disable_log_out to TRUE.
There is a very handy program for locking down certain features, called Pessulus. |
|
| Back to top |
|
 |
MarkKnecht Newbie

Joined: 07 Oct 2006 Posts: 11
|
Posted: Sat Oct 07, 2006 9:48 pm Post subject: |
|
|
| Bosko wrote: | It's very easy, simple set the gconf option /apps/panel/global/disable_log_out to TRUE.
There is a very handy program for locking down certain features, called Pessulus. |
Bosko - thanks for the info. I emerged pessulus. It has a number of things I can change but so far I haven't found one to disable shutdown. Am I missing it?
My system doesn't seem to have gconf. I know it existed on older versions of Gnome. Now I've got gconftool-2. I run it and I just get text options - no GUI like the older gconf. It looks like I should be able to possibly list things that gconftool-2 can change and then set them? I haven'tbeen brave enough to try it yet.
If I should have gconf then maybe it's a limitation of how I emerged Gnome on this Gentoo box?
thanks,
Mark |
|
| Back to top |
|
 |
und0 Moderator

Joined: 09 Feb 2006 Posts: 1222
|
Posted: Sun Oct 08, 2006 1:42 am Post subject: |
|
|
| The GUI tool is called "gconf-editor". |
|
| Back to top |
|
 |
Bosko Dedicated User

Joined: 04 Nov 2002 Posts: 191 Location: The Netherlands
|
Posted: Sun Oct 08, 2006 6:18 am Post subject: |
|
|
The graphical tool is indeed called "gconf-editor" and it should be installed on your computer, since I also use Gentoo and I have it It should be in the Applications>System tools>Configuration editor menu.
In Pessulus you have to go to the second tab (titled Panel) and check the box titled Disable log out. |
|
| Back to top |
|
 |
MarkKnecht Newbie

Joined: 07 Oct 2006 Posts: 11
|
Posted: Sun Oct 08, 2006 7:24 pm Post subject: |
|
|
| Bosko wrote: | The graphical tool is indeed called "gconf-editor" and it should be installed on your computer, since I also use Gentoo and I have it It should be in the Applications>System tools>Configuration editor menu.
In Pessulus you have to go to the second tab (titled Panel) and check the box titled Disable log out. |
OK, the missing gconf-editor was the result of emerging gnome-light instead of gnome. gconf-editor isn't included in that meta-build. However after emerging it I'm stuck. (As I am with pessulus also.) I don't want to disable logout. Users need to log out. That's fine. However users do not need to shut the system down so I only want to disable the abaility of a user to shut down the system from within their Gnome user environment. (From gdm is OK with me - just not from within the Gnome desktop.)
I.e. - remove the 'Shutdown' option but not remove the 'Logout' option.
There must be some way to do this, isn't there?
Thanks,
Mark |
|
| Back to top |
|
 |
und0 Moderator

Joined: 09 Feb 2006 Posts: 1222
|
Posted: Mon Oct 09, 2006 3:26 am Post subject: |
|
|
Shutdown, reboot and suspend actions on Gnome menu are related to GMD.
I don't know if via gconf you can set fine grade actions configuration.
According to http://www.gnome.org/projects/gdm/docs/2.14/configuration.html the only way to disable the actions above is to use and empty value on the HaltCommand RebootCommand and SuspendCommand.
This will remove the actions from Gnome menu and GDM too...
Edit:
This is with Gnome 2.14, don't know if something was changed in Gnome 2.16 |
|
| Back to top |
|
 |
Bosko Dedicated User

Joined: 04 Nov 2002 Posts: 191 Location: The Netherlands
|
Posted: Mon Oct 09, 2006 2:05 pm Post subject: |
|
|
| But you can add a "log out" button to the panel/desktop. That way users will still be able to logout from GNOME. Otherwise your only option is hacking the sourcecode... |
|
| Back to top |
|
 |
MarkKnecht Newbie

Joined: 07 Oct 2006 Posts: 11
|
Posted: Wed Oct 18, 2006 8:25 am Post subject: |
|
|
| Bosko wrote: | | But you can add a "log out" button to the panel/desktop. That way users will still be able to logout from GNOME. Otherwise your only option is hacking the sourcecode... |
Bosko,
I think you didn't test this idea. Sounded great but doesn't work.
1) If I add the logout icon to the poanel before disabling logout then the icon becomes grey'ed out.
2) If I try to add it after disabling logout then the options doesn't exist in the Add to Panel options.
My problem here is that 'shutdown -h now' is a command that can only be executed successfully by root. Why have the Gnome developers decided to give any user access to a root command on a multi-user system? Don't they know people can be using the system remotely? Frustrating!
Thanks for your help!
Cheers,
Mark |
|
| Back to top |
|
 |
MarkKnecht Newbie

Joined: 07 Oct 2006 Posts: 11
|
Posted: Wed Oct 18, 2006 8:35 am Post subject: |
|
|
Thanks. Removing shutdown from the GDM login screen wasn't what I wanted to do but in the worst case it might be acceptable. It seems however that the HaltCommand option is already commented out in gdm.conf by default. I'll try turning it on and having it empty after finishing this post.
The problem we're having here isn't even really that the Gnome desktop menu added shutdown. The real problem is that the shutdown icon in the menu is located right next to logout icon. My wife, my son and my 78 year old Gnome-using father all make the mistake over and over again of hitting this once or twice a week. Since their desktop, Gnome-running machines are also servers for the network they bring down services for others when they make this mistake.
If I could even move the icon to another location that would help fix the problem.
Where does one go to post a request to Gnome developers? I'd be happy to just try to make my case with them and let them decide for some later version of Gnome.
Thanks,
Mark
| und0 wrote: | Shutdown, reboot and suspend actions on Gnome menu are related to GMD.
I don't know if via gconf you can set fine grade actions configuration.
According to http://www.gnome.org/projects/gdm/docs/2.14/configuration.html the only way to disable the actions above is to use and empty value on the HaltCommand RebootCommand and SuspendCommand.
This will remove the actions from Gnome menu and GDM too...
Edit:
This is with Gnome 2.14, don't know if something was changed in Gnome 2.16 |
|
|
| Back to top |
|
 |
und0 Moderator

Joined: 09 Feb 2006 Posts: 1222
|
Posted: Wed Oct 18, 2006 2:44 pm Post subject: |
|
|
| MarkKnecht wrote: | If I could even move the icon to another location that would help fix the problem.
Where does one go to post a request to Gnome developers? I'd be happy to just try to make my case with them and let them decide for some later version of Gnome.
|
In the BTS (bugzilla.gnome.org), i'm not sure were to file this, maybe you could suggest to add a key in Gconf for the panel, right now there's an entry called "disable_log_out" (/apps/panel/global/disable_log_out) that disable both menu entries, so maybe adding a "disable_power_off".
Or you can install the Gnome "main-menu" (the one you see on SUSE), as the poweroff menu entry is missing... (= |
|
| Back to top |
|
 |
saharvetes Newbie

Joined: 08 Feb 2007 Posts: 1
|
Posted: Thu Feb 08, 2007 5:02 am Post subject: |
|
|
Any progress on this?
Users keep clicking "Shut Down" instead of "Log Out" by mistake (or because it's more convenient, being the last option in the menu) and bringing down the machine...
Is there any way at all to remove it?
Thanks |
|
| Back to top |
|
 |
|