[CentOS] Disabling shutdown button

Wed Jun 27 15:25:06 UTC 2007
Jim Wight <j.k.wight at ncl.ac.uk>

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