Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!mailrus!cornell!uw-beaver!rice!sun-spots-request From: dave@jupiter.nmt.edu (Dave Becker) Newsgroups: comp.sys.sun Subject: Re: Asking for root passwd when booting single user Message-ID: <8811302025.AA05550@jupiter.nmt.edu> Date: 12 Dec 88 16:39:28 GMT Sender: usenet@rice.edu Organization: Rice University, Houston, Texas Lines: 25 Approved: Sun-Spots@rice.edu Original-Date: Wed, 30 Nov 88 13:25:09 MST X-Sun-Spots-Digest: Volume 7, Issue 48, message 9 of 12 We've been using the following technique for several years without any problems, but I don't guarantee it: put the following in the file "/.profile": trap exit 2 3 15 PATH=/etc:/usr/bin:/bin:/usr/ucb login root This causes the system to prompt for the root password when booting single-user, and, if it doesn't get it, it immediately boots multi-user instead. **This assumes that root's shell is "/bin/csh"!!**. If it's /bin/sh, you won't like this "solution". The login will time out in 60 seconds, so don't be slow if you mean to boot single user. Of course, SunOS 4.0 can be configured to require the root password anyway, so this technique is already pretty dated. dave -- David C. Becker, "Sys Prog/Anal" ``What are our schools for if not New Mexico Tech Computer Center indoctrination against Communism?'' Socorro, New Mexico 87801 [505] 835-5662 --- Richard M. Nixon Internet: dave@nmt.edu CSNET: dave@nmtsun UUCP: ...!nmtsun!dave