From owner-freebsd-questions Fri Jan 24 12:06:24 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA16243 for questions-outgoing; Fri, 24 Jan 1997 12:06:24 -0800 (PST) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA16235 for ; Fri, 24 Jan 1997 12:06:16 -0800 (PST) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.8.4/8.8.4) with ESMTP id PAA28843; Fri, 24 Jan 1997 15:06:09 -0500 (EST) Received: from localhost (jandrese.async.vt.edu [128.173.20.208]) by sable.cc.vt.edu (8.8.4/8.8.4) with SMTP id PAA14234; Fri, 24 Jan 1997 15:06:07 -0500 (EST) Date: Fri, 24 Jan 1997 15:05:39 +0000 () From: Nessus X-Sender: jandrese@localhost To: Wes Peters cc: questions@freebsd.org Subject: Re: How can I chang my root shell In-Reply-To: <199701241545.IAA03070@obie.softweyr.ml.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 24 Jan 1997, Wes Peters wrote: =)gippolit@ccsmtp2.eccs.com wrote: =) =) =) How do I change my root shell =) =)jandrese@vt.edu replied: =) > You don't want to do this. Login as a regular user and su to root =) > instead, it will keep the original user's shell (assuming you don't use =) > the -l option) =) > The reason for this: =) > Assume you change root's shell to /usr/local/bin/tcsh, then later on, =) > something breaks in your rc, /usr won't be mounted and root won't have a =) > shell. =) =)If you really want a root login account, create another account with =)uid/gid of zero. I have a 'rootb' account on my machines, which is root =)with the bash shell. This leaves root in the standard configuration, =)but gives me a login account with a usable shell. ;^) =) =)BTW, doing an 'su' without using '-' is dangerous, you often have PATH =)entries in your account that you *really don't want* while root. =) Hmmm, would it be dangerous to use, say sh as your root shell, but adding: if [ -e /usr/local/bin/zsh ] then /usr/local/bin/zsh fi to your .login? :::::::::::::::::::::::::::. . . . . ..:::::::::::::::::::::::::::: :: Jason Andresen :. . . . . . . . . : Running FreeBSD and :: :: jandrese@vt.edu :.:.:.:.:.:.:.:.:.:: loving every minute! :: :.........................: Quote of the day :..........................: "A radioactive cat has eighteen half-lives." :::::::::::.:.:.:.:.:.:.:.........................:.:.:.:.:.:.:.:::::::::::