Re: Debian box does not 'finish' booting...
That file is normally removed by the rmnologin script located at
/etc/init.d/rmnologin.
There should also be links to that script in the /etc/rc2.d through
/etc/rc5.d directories. The rmnologin file is part of the sysvinit
package, and the links to it are installed by the
/var/lib/dpkg/info/sysvinit.postinst script during the package
configuration.
The relevant files are:
/etc/init.d/rmnolgin
/etc/rc2.d/S99rmnologin -> ../init.d/rmnologin
/etc/rc3.d/S99rmnologin -> ../init.d/rmnologin
/etc/rc4.d/S99rmnologin -> ../init.d/rmnologin
/etc/rc5.d/S99rmnologin -> ../init.d/rmnologin
If you're missing some of these, the simplest way to fix it might be to
just reinstall the sysvinit package like this:
apt-get install --reinstall sysvinit
Beyond that, if the script exists in /etc/init.d, but the links aren't
there, you can manually install the links by using this command:
update-rc.d rmnologin start 99 2 3 4 5 .
The period at the end is part of the command. See 'man update-rc.d' for
more information.
Tom
Jeremy Higgs wrote:
>
> Hi,
>
> I'm having some troubles with a Debian/PPC box running mostly testing
> (woody?) packages...
>
> After starting up, I have noticed that the /etc/nologin file is not
> removed, as it should be, and as a result, I cannot SSH or login with
> any user except root. Has anyone else encountered this? I'm not sure
> why it's happening, except that it started a couple of days ago...
>
> All of the services start up correctly, and the system seems to have
> switched to runlevel 2 and run all of the services there, but the
> /etc/nologin file still exists, even after a number of hours...
>
> Are there any configuration files which could have caused this?
>
> Thanks...
Reply to: