Path: utzoo!utgpu!watserv1!watmath!att!mcdchg!laidbak!ism.isc.com!uunet!know!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!olivea!tymix!tardis!jms From: jms@tardis.Tymnet.COM (Joe Smith) Newsgroups: comp.unix.misc Subject: Re: Brain Teaser Summary: Suns use /sbin/sh Message-ID: <1296@tardis.Tymnet.COM> Date: 19 Oct 90 18:16:51 GMT References: <1990Oct6.042126.24228@athena.mit.edu> Reply-To: jms@tardis.Tymnet.COM (Joe Smith) Organization: BT Tymnet, San Jose, CA Lines: 14 In article <1990Oct6.042126.24228@athena.mit.edu> wchuang@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@tardis.tymnet.com or jms@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."