Re: Disabling shutdown and suspend for normal users

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



>>>>> On Wed, 19 Sep 2007 15:20:37 +0200
>>>>> "HvL" == Henk van Lingen <henkvl@xxxxxxxx> wrote:

    HvL> Hi,

    HvL> [CentOS 5]

    HvL> What is the best way to remove the shutdown and suspend
    HvL> options from menu's for normal users?

    HvL> After googling around, I added "SystemMenu=false" to the
    HvL> greeter section in /etc/gdm/custom.conf. After that the GDM
    HvL> login screen still shows the options, but 'restart' indeed
    HvL> doesn't work anymore.  However, the gnome menu's when logged
    HvL> in, still have the 'suspend' options, which still leads to a
    HvL> hanging (unwakeble) machine.

Just set HaltCommand to nothing:

HaltCommand=

Same for Reboot and Suspend (Havn't tried suspend yet) but my machines
allow Reboot and Halt neither from the user menus nor the Login-Screen

I think in the [daemon]-section of the config-file

    HvL> BTW: I prefer editing config files instead of stupid gui's,
    HvL> as I have to change a lot of machines :-)

Of course


_______________________________________________
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