Red Hat Bugzilla – Bug 588533
control-alt-delete.conf does not modify control-alt-delete
Last modified: 2010-05-04 10:33:58 EDT
Description of problem:
Editing /etc/control-alt-delete.conf does not affect the result of pressing control-alt-delete
Version-Release number of selected component (if applicable):
Edit the /etc/control-alt-delete.conf file and comment out the existing 'exec' line and add a line like:
exec /bin/echo "Control-Alt-Delete disabled"
Reboot, then press Control-Alt-Delete
Steps to Reproduce:
1. Edit the /etc/control-alt-delete.conf file
2. Reboot the system to make sure init uses the changed file
3. Press Control-Alt-Delete
The system prompts to shutdown
A simple echo somewhere and no reboot
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
> Editing /etc/control-alt-delete.conf does not affect the result of pressing
Did you mean /etc/init/control-alt-delete.conf?
> The system prompts to shutdown
If you press Control-Alt-Delete with running desktop environment then it is handled by you desktop (KDE, GNOME, ...). First you need to switch to virtual console - Ctl-Alt-F[2-6].
> A simple echo somewhere and no reboot
Upstart jobs have stdout and stderr outputs connected to /dev/null by default. You can add "console output" stanza to connect them to /dev/console:
start on control-alt-delete
exec echo /sbin/shutdown -r now "Control-Alt-Delete pressed"
Yes, I did mean /etc/init/control-alt-delete.conf (not enough coffee before posting!) The previous method of enabling control-alt-delete in the /etc/inittab file affected any invocation of control-alt-delete and it was not clear in any documentation that I could find that this was not true for /etc/init/control-alt-delete.conf. So, this is not really a bug then and can be closed. However, I have been unable to find any way to completely disable control-alt-delete (as needed for lab machines which run batch jobs) in RHEL6 under the GNOME desktop.