Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 1996 10:07:51 -0700 (PDT)
From:      Gary Kline <kline@tera.com>
To:        davidg@root.com
Cc:        durang@u.washington.edu, dwhite@resnet.uoregon.edu, questions@freebsd.org
Subject:   Re: /etc/nologin file invunerability
Message-ID:  <199607151707.KAA10652@athena.tera.com>
In-Reply-To: <199607150612.XAA02199@root.com> from David Greenman at "Jul 14, 96 11:12:31 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
According to David Greenman:
> >> > I tried booting with -s option, and found that I have few commands at my
> >> > disposal (i.e., no man pages) and I am also denied access to the file
> >> > /etc/nologin. "su" is also not available when I single-user boot. I can
> >> > delete the file when logged in as root, but then it reinstates itself when
> >> > I reboot.
> >>
> >> Oh, you have to key in "mount /" then "mount -a" to get your commands
> >> back and get / back to read/write.
> >>
> >> > This is only one of many problems I have had, including no login prompt on
> >> > boot, my atapi CD-ROM isn't recognized, my lpd daemon has to be
> >> > re-activated manually with ever print..... it think all the problems are
> >> > the result of using an atapi CD-ROM boot floppy from the 2.1.0 release to
> >> > install from the Walnut Creek 2.0.5 CD. The install was not very clean.
> >
> >so i booted with "-s" and did the "mount /" and "mount -a".  Then I
> >removed the file /etc/nologin. When i rebooted, it had reappeared. It is
> >just like before. I delete it, and next time it is there again.
> 
>    Sounds like someone is playing a trick on you. /etc/nologin is normally
> created by the shutdown command and is normally removed in the system startup
> script /etc/rc.
> 

	Here's an idea:  Ken, when you've booted with ``-s'' and remounted
	things, *don't* remove /etc/nologin.  Rather cp it somewhere so
	that you've got a copy available.  Then vi /etc/nologin and either
	deleted every line or put in an echo line to trace where and how
	this file is getting added back.

	Strange... but there is an explaination.  

	gary




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607151707.KAA10652>