Re: Disabling shutdown button

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux