sscalsk@nswc-wo.arpa (01/21/87)
In a BSD4.2 system, is there a proper way to terminate a shutdown in progress? If a command of the form: '/etc/shutdown +5' is started, interrupting does not seem to terminate the whole process. The shutdown continues to mark out the time till shutdown. Killing the process leaves the /etc/nologin file in place. A real pain if not noticed before logging out! (This needed a reboot to single user to fix as no users were logged on). Is this the way all shutdown utilities work? -or- Is this a localism in dire need of fixing? Suggestions? Opinions? sscalsk@nswc-wo.arpa
guy%gorodish@Sun.COM (Guy Harris) (01/21/87)
> Killing the process leaves the /etc/nologin file in place.
Try using a less lethal instrument next time. "shutdown" catches the
"terminate" signal, which is what "kill" sends by default, and removes the
"/etc/nologin" file before exiting. Just use "kill", not "kill -9" or
"kill -KILL".
sscalsk@nswc-wo.arpa (01/22/87)
Rick Braman (FutureNet - Data I/O Corp) and James Kiely (Kiely Labs) both asked the question 'Why shutdown the system to single user-mode to remove /etc/nologin when root can logon in the presence of the /etc/nologin file?' A good question: at my site steps have been taken thru local security mods to prevent root from logging directly into any terminal, including the console. This is an attempt to track super-user usage by making people promote to super-user from 'su'. (Probably should have stated this in the origional posting). In the face of this local mod it seems that there really are times when root needs a direct logon. [DISCLAIMER: The preceding was brought to you by me and only me] Stan Scalsky Naval Surface Weapons Center - White Oak ARPA: sscalsk@nswc-wo.arpa Compuserve: 70337,2015 BIX: sscalsky Source: BBJ841
mac@esl.UUCP (01/27/87)
In article <2937@brl-adm.ARPA> sscalsk@nswc-wo.arpa writes:
-In a BSD4.2 system, is there a proper way to terminate a shutdown in progress?
-Killing the process leaves the /etc/nologin file in place.
-A real pain if not noticed before logging out! (This needed a reboot to single
-user to fix as no users were logged on).
Note: You could always login as root, despite the presence of a
/etc/nologin file. Also note that /etc/nologin is cat'ted
to the screens of those attempting to login who are not
root. But of course, the correct thing to do is kill the shutdown
process, rather than kill -9, as Guy said.
mac@esl
-sscalsk@nswc-wo.arpa
--
Michael Mc Namara
ESL Incorporated
ARPA: mac%esl@lll-lcc.ARPA