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

Re: disable shutdown/reboot in GNOME logout menu



On Thu, 2005-08-11 at 11:21 -0300, Ben Steeves wrote: 
> Any suggestions?

Hi Ben,
To be completely safe, there are a couple of things to do here. 

You need to change gdm's config to remove the menu options.
Open /etc/X11/gdm/gdm.conf in a text editor and find the [greeter]
section. Make sure there is a line like this:

[greeter]
...
SystemMenu=false

This removes the shutdown/reboot options from the log-in screen and the
log-out dialog. Alternatively run gdmconfig and provide the root
password, then uncheck the 'Show action menu' option on the security
tab. 

To prevent users opening a terminal and running poweroff or reboot,
delete or move these files:

/etc/security/console.apps/poweroff
/etc/security/console.apps/reboot

If your machines use ACPI, you will also need to disable ACPI-driven
shutdowns from the power button. 

On more to go now, to prevent someone switching to a virtual console and
hitting ctrl-alt-del, we need to edit inittab. Find the line that looks
like this:

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

And change it to read:

# Disallow CTRL-ALT-DELETE
ca::ctrlaltdel:/bin/echo "ctrl-alt-delete has been disabled"

(You can use /bin/true, or /usr/bin/logger etc. here instead if you wish
- just watch out if someone tries ctrl-alt-del before /usr is mounted :)

Kind regards,

> -- 
> Ben Steeves                     _                    bcs metacon ca
>  The ASCII ribbon campaign     ( )            ben steeves gmail com
>    against HTML e-mail          X                GPG ID: 0xB3EBF1D9
> http://www.metacon.ca/bcs      / \     Yahoo Messenger: ben_steeves
> 

--
Bryn M. Reeves
Instructor II  -  Red Hat Global Learning Services EMEA
 
Red Hat Europe          Tel:+44 (0)1483-734926      
10 Alan Turing Rd       Fax:+44 (0)1483-734956    
Surrey Research Park    Mob:+44 (0)7740-812997
Guildford, Surrey       email: breeves redhat com
GU2 7YF, UK             Web:   http://www.europe.redhat.com



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