Hi list,
Can someone tell me how to disable (or remove) the "shutdown" button that appears on the console under CentOS 5 ? Thanks a lot
On Wed, 2007-06-27 at 10:33 +0200, Web and Co sprl - P. Derwael wrote:
Hi list,
Can someone tell me how to disable (or remove) the "shutdown" button that appears on the console under CentOS 5 ? Thanks a lot
By *console* are you referring to the GUI screen for logins? the GUI screen after you login ?
Dave
Dave,
What I mean is the shutdown option that you have at the GUI screen before login. In other words, I would like to prevent anyone from shutting down my system before logging in.
Thanks!
On Wed, June 27, 2007 16:42, Dave Augustus said:
On Wed, 2007-06-27 at 10:33 +0200, Web and Co sprl - P. Derwael wrote:
Hi list,
Can someone tell me how to disable (or remove) the "shutdown" button that appears on the console under CentOS 5 ? Thanks a lot
By *console* are you referring to the GUI screen for logins? the GUI screen after you login ?
Dave
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, 2007-06-27 at 16:58 +0200, Web and Co sprl - P. Derwael wrote:
What I mean is the shutdown option that you have at the GUI screen before login. In other words, I would like to prevent anyone from shutting down my system before logging in.
I've done a similar thing on Fedora systems by putting the following in /etc/gdm/custom.conf
[daemon] HaltCommand= RebootCommand=
I don't have any CentOS boxes with a GUI screen to check it on, but I wouldn't be surprised if it was equally applicable there.
Jim
Jim,
That does partially do the job: when you click on shutdown or reboot, it simply restarts the X server.
I can live with that, but I would prefer a neater solution where those options are no longer available/visible
Thanks !
Patrick Derwael WEB And Co sprl Rue Hubert Larock, 20 B - 4280 Poucet Belgium
http://www.webandco.be/ http://www.webandco.be http://www.webandco.be/default/conditions-generales.pdf Nos Conditions générales ----------------------------------------- http://www.webandco.be/reseau/audit-securite-informatique.asp ICT & Security management http://www.webandco.be/developpement/creation-site-web-internet.asp Création, http://www.webandco.be/developpement/maintenance-site-web-internet.asp gestion et http://www.webandco.be/referencement/accueil.asp référencement de sites Web http://www.webandco.be/hebergement/accueil.asp Hébergement et http://www.webandco.be/domaine/accueil.asp noms de domaine
_____
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Jim Wight Sent: mercredi 27 juin 2007 17:25 To: CentOS mailing list Subject: Re: [CentOS] Disabling shutdown button
On Wed, 2007-06-27 at 16:58 +0200, Web and Co sprl - P. Derwael wrote:
What I mean is the shutdown option that you have at the GUI screen before login. In other words, I would like to prevent anyone from shutting down my system before logging in.
I've done a similar thing on Fedora systems by putting the following in /etc/gdm/custom.conf
[daemon] HaltCommand= RebootCommand=
I don't have any CentOS boxes with a GUI screen to check it on, but I wouldn't be surprised if it was equally applicable there.
Jim
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
_____
avast! Antivirus http://www.avast.com : Inbound message clean.
Virus Database (VPS): 000752-2, 27/06/2007 Tested on: 27/06/2007 18:20:34 avast! - copyright (c) 1988-2007 ALWIL Software.
On 27/06/07, Web and Co sprl - Patrick DERWAEL pderwael@webandco.be wrote:
That does partially do the job: when you click on shutdown or reboot, it simply restarts the X server.
Under login screen menu untick "action" option
-- Regards, Sudev Barar
2007/6/27, Web and Co sprl - Patrick DERWAEL pderwael@webandco.be:
Jim,
I'm not Jim... still, does under top panel, Desktop, Administration, Authentication, unchecking Actions box fulfill your wishes? I'm on a localized Debi[li]an Gnome from gdm now... sorry if not.
(thx Jim, you save for me lot of gas).
Greetings, Stan Păpușă warming globally.
Ooops, sorry for that …
There is no “Action” box under Desktop, Administration, Authentication
I’ve done the following changes in /etc/gdm/custom.conf (just in case it helps…)
[daemon]
HaltCommand=
RebootCommand=
[greeter]
SoundOnLogin=false
SystemMenu=false
ConfigAvailable=false
ChooserButton=false
According to the documentation, this should do it, but that’s not quite the case…:-(
Any other clue ???
_____
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of user local Sent: jeudi 28 juin 2007 4:12 To: CentOS mailing list Subject: Re: [CentOS] Disabling shutdown button
I'm not Jim... still, does under top panel, Desktop, Administration, Authentication, unchecking Actions box fulfill your wishes? I'm on a localized Debi[li]an Gnome from gdm now... sorry if not.
(thx Jim, you save for me lot of gas).
Greetings, Stan Păpușă warming globally.
Web and Co sprl - Patrick DERWAEL wrote:
Ooops, sorry for that …
There is no “Action” box under Desktop, Administration, Authentication
I’ve done the following changes in /etc/gdm/custom.conf (just in case it helps…)
[daemon] HaltCommand= RebootCommand=
[greeter] SoundOnLogin=false SystemMenu=false ConfigAvailable=false ChooserButton=false
According to the documentation, this should do it, but that’s not quite the case…:-(
Any other clue ???
All you need is the SystemMenu=false statement as above and two small modifications to another file: /usr/share/gdm/themes/CentOSCubes/CentOSCubes.xml
The two modifications are:
1. Change line 102 from: <show modes="console"/> to: <show type="reboot" modes="console"/>
2. Change line 118 from: <show modes="console"/> to: <show type="halt" modes="console"/>
The lines above both of these should have an item tag refering to the appropriate reboot/halt button. Then restart the gdm. The shutdown and reboot buttons should no longer appear.
Erik
Erik
This is exactly what I wanted !
Thanks a lot
All you need is the SystemMenu=false statement as above and two small modifications to another file: /usr/share/gdm/themes/CentOSCubes/CentOSCubes.xml
The two modifications are:
1. Change line 102 from: <show modes="console"/> to: <show type="reboot" modes="console"/>
2. Change line 118 from: <show modes="console"/> to: <show type="halt" modes="console"/>
The lines above both of these should have an item tag refering to the appropriate reboot/halt button. Then restart the gdm. The shutdown and reboot buttons should no longer appear.
Erik _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
_____
avast! Antivirus http://www.avast.com : Inbound message clean.
Virus Database (VPS): 000752-5, 29/06/2007 Tested on: 30/06/2007 13:04:36 avast! - copyright (c) 1988-2007 ALWIL Software.