From owner-freebsd-questions Thu Feb 7 10:34:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rambo.simx.org (rambo.simx.org [194.17.208.54]) by hub.freebsd.org (Postfix) with ESMTP id D9B7737B404 for ; Thu, 7 Feb 2002 10:34:39 -0800 (PST) Received: from rambo.simx.org (malin.twenty4help.se [195.67.108.195]) by rambo.simx.org (8.11.6/8.11.6) with ESMTP id g17IYQZ62806; Thu, 7 Feb 2002 18:34:26 GMT (envelope-from listsub@rambo.simx.org) Message-ID: <3C62C8B0.2010102@rambo.simx.org> Date: Thu, 07 Feb 2002 19:34:24 +0100 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Marcus Collins Cc: Cliff Sarginson , freebsd-questions@FreeBSD.ORG Subject: Re: toor? References: <001e01c1af94$a14e04f0$2300a8c0@zeus> <20020207091505.A1036@encephalon.de> <20020207172522.GA2088@raggedclown.net> <3C62B9EE.3020009@rambo.simx.org> <20020207182321.GA27040@davinci.writeclick.co.za> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Marcus Collins wrote: >On Thu, 7 Feb 2002 at 18:31:26 +0100, Roger 'Rocky' Vetterberg wrote: > >>Could someone explain why you cant just chsh or vipw roots shell to >>bash, sh or whatever? >>I cant see any good reason to have two root accounts just because you >>dont like the default root shell. >> > >The default root account uses csh as its shell. This is located in /bin, >which is (usually) in the / filesystem. > >You can set toor to use whatever shell you want, for example, >/usr/local/bin/bash, and use that in day-to-day superuser operations. > >If your /usr filesystem gets hosed, you can still login as root >(= /bin/csh), assuming your / filesystem can still be mounted. This, >AFAIK, is the theory behind having two UID 0 users, rather than just >one with whichever shell you select. > >The "root" user is just a traditional name for UID 0. Any user with UID >0 has superuser privileges. > >Cheers! > >-- Marcus > If root has a shell residing under /usr, and /usr for some reason is not mounted at boot, it will prompt you somehing like "Enter full pathname of shell or press enter for /bin/sh". So this can not be the only reason there are two root accounts. -- R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message