From owner-freebsd-hackers Fri May 9 09:53:14 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA15374 for hackers-outgoing; Fri, 9 May 1997 09:53:14 -0700 (PDT) Received: from kremvax.demos.su (kremvax.demos.su [194.87.0.20]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id JAA15366 for ; Fri, 9 May 1997 09:53:09 -0700 (PDT) Received: by kremvax.demos.su (8.6.13/D) from 0@sinbin.demos.su [194.87.0.31] with ESMTP id UAA23279; Fri, 9 May 1997 20:50:25 +0400 Received: by sinbin.demos.su id UAA02496; (8.6.12/D) Fri, 9 May 1997 20:50:39 +0400 From: bag@sinbin.demos.su (Alex G. Bulushev) Message-Id: <199705091650.UAA02496@sinbin.demos.su> Subject: Re: why 'toor'? In-Reply-To: <199705091017.UAA28441@ogre.dtir.qld.gov.au> from Stephen McKay at "May 9, 97 08:17:49 pm" To: syssgm@dtir.qld.gov.au (Stephen McKay) Date: Fri, 9 May 1997 20:50:39 +0400 (MSD) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > On Thursday, 8th May 1997, Michael Hancock wrote: > > >On 8 May 1997, Choi Jun Ho wrote: > > > >> >From all the dist of FreeBSD I've seen, there is an id 'toor', > >> equivalent to 'root'. I heard that is for Bourne-shell root users, but > >> I cannot understand why two root id exist. Is it a some traditional > >> reason or some kind of joke? > > > >'root' is to be used with 'sh' a statically linked binary in case /usr > >isn't mounted. > > > >'toor' can use a dynamically linked 'bash' and be equivalent to root. > > Sounds like a good plan, but it's not what we do. As distributed, "root" > on FreeBSD runs /bin/csh, and "toor" runs /bin/sh (both are only available > statically linked). Since I hate csh with a burning passion, I always > delete "toor" and convert "root" to sh when installing FreeBSD. By the > way, "Charlie Root" and "Bourne-again Superuser" are a bit silly as names. > I always include the machine name, like "doorstop root". > > I suppose the real reason for "toor" is to appease the csh haters. It's > been like that since 386BSD as far as I can recall. I don't think it > was like this in the 4.2 BSD days, but I now have no way to check. > > Stephen. > in 2.9 BSD days and 4.2 BSD days there was no sharing libs and root with /bin/sh used in single user mode when /usr not mounted toor used for alternative shell ... if, for example, /bin/sh demaged ... Alex.