home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.3b1
- Path: sparky!uunet!ceilidh!dnichols
- From: dnichols@d-and-d.com (DoN. Nichols)
- Subject: Re: Shutdown problems
- Message-ID: <1993Jan27.034952.4141@d-and-d.com>
- Keywords: pascal compiler
- Sender: usenet@d-and-d.com (Usenet)
- Nntp-Posting-Host: shindig
- Organization: D and D Data, Vienna VA
- References: <1jp8dqINN5t0@jhunix.hcf.jhu.edu> <1993Jan24.203146.6959@ultb.isc.rit.edu> <1993Jan24.205045.7310@ultb.isc.rit.edu>
- Date: Wed, 27 Jan 1993 03:49:52 GMT
- Lines: 43
-
- In article <1993Jan24.205045.7310@ultb.isc.rit.edu> nmw1638@ultb.isc.rit.edu (N.M. Williams) writes:
- >Ok, I have a small problem that I can live with but would like to fix:
- >yesterday I tried to shutdown my 3b1, but instead of getting the typical
- >"YOU MAY NOW SWITCH THE POWER OFF" (or whatever it is it says) init
- >prompted me for a run-level to enter. It wouldn't go into single user,
- >(it flashed something like "No shell"), and since I didn't have any
-
- [ ... ]
-
- >Like I said, I can live with this since it seems safe to shut off my 3b1
- >at the run-level prompt, but it is annoying. Any ideas on what could be
- >wrong? Also how can I go into single-user mode from that prompt? (What
- >inittab entry do I need? I though ' ssh:s:respawn:sh </dev/console
- >>/dev/console' might do, but I don't have the man page for sh at hand).
-
- Have you changed the default shell for root? If it is not /bin/sh
- various strange things happen, including problems with things run from
- crontab. If you have the *best* version of ksh - *not* the one that comes
- with 3.51, *not* the upgraded version from 3.51m, but the one from the "THE
- STORE" section of the archives, you can get away with renaming /bin/sh to
- /bin/bourne-shell or something like that, and then "ln /bin/ksh /bin/sh".
-
- Since that version of ksh is mostly a proper superset of /bin/sh,
- most things work, but certain cleanup scripts are a danger. I don't
- remember whether it is one of the uucp scripts, or the general system
- cleanup script, but it can fail in a *very* undesireable way. I believe
- that it was Thad Florian who posted about this problem about a year ago.
-
- It is generally safer to have an alternate root account that runs
- the shell of your choice, but have the one named 'root' *first*, and with
- /bin/sh as its shell.
-
- If you *are* using /bin/sh as the root shell, then it is back to the
- guessing game, unless someone else turns up useful information.
-
- Good Luck
- DoN.
-
- --
- Email: <dnichols@d-and-d.com> | ...!uunet!ceilidh!dnichols
- <dnichols@ceilidh.beartrack.com>
- Donald Nichols (DoN.) | Voice (Days): (703) 704-2280 (Eves): (703) 938-4564
- --- Black Holes are where God is dividing by zero ---
-