On Thu, 2005-08-11 at 11:21 -0300, Ben Steeves wrote:
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:
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
To prevent users opening a terminal and running poweroff or reboot,
delete or move these files:
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
# 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 :)
Ben Steeves _ bcs(a)metacon.ca
The ASCII ribbon campaign ( ) ben.steeves(a)gmail.com
against HTML e-mail X GPG ID: 0xB3EBF1D9
/ \ 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(a)redhat.com
GU2 7YF, UK Web: http://www.europe.redhat.com