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 16:51:42 +0200
>>>>> "HvL" == Henk van Lingen <henkvl@xxxxxxxx> wrote:

    HvL> On Wed, Sep 19, 2007 at 03:49:34PM +0200, Bernhard Gschaider
    HvL> wrote:
    >> 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

    HvL>   For Reboot and Halt this works. Setting SuspendCommand=
    HvL> does nothing.  Suspend still shows up in the menu, and hangs
    HvL> the machine.

You have also tried it with a lowercase S? Stupid question, but the
relevant section in /usr/share/gdm/defaults.conf says:

# Reboot, Halt and suspend commands, you can add different commands separated
# by a semicolon.  GDM will use the first one it can find.
RebootCommand=/sbin/reboot;/sbin/shutdown -r now;/usr/sbin/shutdown -r now;/usr/bin/reboot
HaltCommand=/sbin/poweroff;/sbin/shutdown -h now;/usr/sbin/shutdown -h now;/usr/bin/poweroff

It may be typo ...
_______________________________________________
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