Brain Teaser

Joe Smith jms at tardis.Tymnet.COM
Sat Oct 20 04:16:51 AEST 1990


In article <1990Oct6.042126.24228 at athena.mit.edu> wchuang at athena.mit.edu (Mithrandir) writes:
>>mv /bin/sh /bin/sh.in		# now you're stuck
>On a single-machine, you could reboot the workstation, bring it up in
>single-user mode, and move /bin/sh.bin back to /bin/sh.

You can only do that on a system where the single-user shell is something
other than /bin/sh.  One such example is SunOS 4.0 and later.  When a Sun
system comes up single-user, the kernel starts up /sbin/init which invokes
/sbin/sh.  (/usr/bin/sh is not used since /usr is often NFS mounted.)
-- 
Joe Smith (408)922-6220 | SMTP: jms at tardis.tymnet.com or jms at gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C41    | BIX: smithjoe | 12 PDP-10s still running! "POPJ P,"
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."



More information about the Comp.unix.misc mailing list