Bug 74814 - /etc/nologin is not removed on boot
/etc/nologin is not removed on boot
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
7.3
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
: 78129 (view as bug list)
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2002-10-01 17:13 EDT by Need Real Name
Modified: 2015-10-30 16:20 EDT (History)
4 users (show)

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


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-10-01 17:13:26 EDT
I rebooted my RedHat 7.3 server.  It was having some kind of wacky file
descriptor insanity.  When it came back on-line I was unable to ssh in because
the /etc/nologin was still present.  I had to ssh in as root (only possible
because I had overlooked this security hole) and remove the file before I could
log in as a normal user.


Expected Results:

  I think the mature UNIXes deal with this problem by performing an "rm
/etc/nologin" somewhere in their init scripts.  RedHat should do this too. 
rc.sysinit is the likely candidate.
Comment 1 Bill Nottingham 2002-11-12 01:32:18 EST
This was determined as not the way to do it back in 1999; I'm not sure I want to
change this behavior now.
Comment 2 Need Real Name 2002-11-12 10:51:24 EST
So, are you saying that when the reboot malfunctions somehow and the machine
boots with an /etc/nologin that the only resolution is physical access by
someone with the root password?

If this is the case, how do I prevent /etc/nologin from being created during the
reboot process?
Comment 3 Bill Nottingham 2002-11-19 11:13:11 EST
*** Bug 78129 has been marked as a duplicate of this bug. ***
Comment 4 Dax Kelson 2006-02-01 12:46:56 EST
The other UNIXes have this behavior (which has been in place for decades) correct. 

A reboot should delete the /etc/nologin file.
Comment 5 Dax Kelson 2015-10-30 16:20:22 EDT
I'm happy to see that 8.5 years later, RHEL7 agreed with me. :)

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