Bug 156117 - shutdown.allow and ca in inittab.
shutdown.allow and ca in inittab.
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
i386 Linux
medium Severity high
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2005-04-27 13:31 EDT by Prakash Purushotham
Modified: 2014-03-16 22:53 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-10-03 17:01:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Prakash Purushotham 2005-04-27 13:31:24 EDT
Description of problem:

I have added the "-a" flag to the shutdown command on the ca (Ctrl-Alt-Del)
controls in inittab. I have also created the shutdown.allow file in /etc and
added root and a couple of other users who can hit Ctrl-Alt-Del to reboot the

When no (super)users are logged in, hitting Ctrl-Alt-Del functions normally,
that is, it displays "shutdown: no authorized users logged in". This behaviour
is exhibited in all earlier versions (RH7 to FC2).

When root or any of the authorized users are logged in to one terminal (say
tty1) and the user Ctrl-Alt-Fn's to another terminal ( say tty 4) and hits
Ctrl-Alt-Del without logging in, FC3 initiates the reboot sequence. RH7 - FC2 do
not initiate a reboot.

Is this a bug in FC3 or was it a bug in the previous versions?

Version-Release number of selected component (if applicable):
Fedora Core 3, all patches current.

How reproducible:
Very much reproducible

Steps to Reproduce:
1. Add the -a flag to shutdown command on the ca line in /etc/inittab
2. init Q
3. create /etc/shutdown.allow and add root.
3. switch to another terminal, say Ctrl-Alt-F3 (tty3)
4. do not log in here
5. Hit Ctrl-Alt-Del
6. System reboots
Actual results:

Ctrl-Alt-Del initiates reboot if authorized user is logged in on another terminal.

Expected results:

should display "Shutdown: no authorized users logged in"

Additional info:
Comment 1 Bill Nottingham 2005-10-03 17:01:36 EDT
It looks like the code is working as designed, in that it checks all the logged
in users on all virtual terminals.

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