Bug 588533 - control-alt-delete.conf does not modify control-alt-delete
control-alt-delete.conf does not modify control-alt-delete
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts (Show other bugs)
6.0
All Linux
low Severity medium
: rc
: ---
Assigned To: initscripts Maintenance Team
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-03 17:36 EDT by Andy Feldt
Modified: 2010-05-04 10:33 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-04 03:44:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andy Feldt 2010-05-03 17:36:49 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):
9.03.4-1

How reproducible:

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
  
Actual results:
The system prompts to shutdown

Expected results:
A simple echo somewhere and no reboot

Additional info:
Comment 2 RHEL Product and Program Management 2010-05-03 19:37:27 EDT
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
inclusion.
Comment 3 Petr Lautrbach 2010-05-04 03:44:50 EDT
> Editing /etc/control-alt-delete.conf does not affect the result of pressing
control-alt-delete

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:

/etc/init/control-alt-delete.conf:
start on control-alt-delete
console output
exec echo /sbin/shutdown -r now "Control-Alt-Delete pressed"
Comment 4 Andy Feldt 2010-05-04 10:33:58 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.