Bug 588533 - control-alt-delete.conf does not modify control-alt-delete
Summary: control-alt-delete.conf does not modify control-alt-delete
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts   
(Show other bugs)
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-03 21:36 UTC by Andy Feldt
Modified: 2010-05-04 14:33 UTC (History)
1 user (show)

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


Attachments (Terms of Use)

Description Andy Feldt 2010-05-03 21:36:49 UTC
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 23:37:27 UTC
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 07:44:50 UTC
> 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 14:33:58 UTC
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.