RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 588533 - control-alt-delete.conf does not modify control-alt-delete
Summary: control-alt-delete.conf does not modify control-alt-delete
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: initscripts
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: initscripts Maintenance Team
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
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:
Clone Of:
Environment:
Last Closed: 2010-05-04 07:44:50 UTC
Target Upstream Version:
Embargoed:


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 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.