Bug 156117

Summary: shutdown.allow and ca in inittab.
Product: [Fedora] Fedora Reporter: Prakash Purushotham <ppuru>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: high Docs Contact:
Priority: medium    
Version: 3CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-03 21:01:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Prakash Purushotham 2005-04-27 17:31:24 UTC
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
system.

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 21:01:36 UTC
It looks like the code is working as designed, in that it checks all the logged
in users on all virtual terminals.