🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9548

Re: Asking for root passwd when booting single user

#9548
From: Henk Boetzkes
Date: Mon, 12 Dec 1988 04:34
32 lines
1406 bytes
Danielle Heinzer:
>...
> How can I set the system to ask for the root passwd, when booting single
> user ?

It's simple, by (mis)using your /.profile !!!  Let's see if we can make
one ?

#
stty -echo kill u intr u susp u dsusp u quit u stop u
PATH=/etc:/usr/etc:/usr/ucb:/bin:/usr/bin:.
echo ""
echo -n "              Enter password  "
read ans
echo ""
if [ .$ans != ".tulip" ]
	then
echo "";echo "         ILLEGAL USER"
/etc/halt
else stty echo kill \^u intr \^c susp \^z dsusp \^y stop \^s quit \^\\
stty dec
export TERM
echo "password o.k."
fi

So, if we now make an 'chmod 500 /.profile' and we shut the client down
and we do an boot -s, we have to use the password "tulip" to perform an
full single-user boot.

Henk.A.P.A. Boetzkes # E.D.P. N.P.B. Consumer Electronics # PO. BOX 218
5600 MD Eindhoven, The Netherlands # Building SK4, Room 416
+31 40 735983 # !uunet! -> mcvax!philmds!philce!henkbo
Technical Details
Message-ID: <280@philce.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!rice!sun-spots-request
From: mcvax!philce!henkbo@uunet.uu.net (Henk Boetzkes)
Newsgroups: comp.sys.sun
Subject: Re: Asking for root passwd when booting single user
Message-ID: <280@philce.UUCP>
Date: 12 Dec 88 04:34:37 GMT
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 32
Approved: Sun-Spots@rice.edu
Original-Date: 28 Nov 88 16:15:00 GMT
X-Sun-Spots-Digest: Volume 7, Issue 45, message 6 of 14