Date: Fri, 24 Jan 1997 15:05:39 +0000 () From: Nessus <jandrese@vt.edu> To: Wes Peters <softweyr@xmission.com> Cc: questions@freebsd.org Subject: Re: How can I chang my root shell Message-ID: <Pine.BSF.3.95.970124150025.17138A-100000@localhost> In-Reply-To: <199701241545.IAA03070@obie.softweyr.ml.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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." :::::::::::.:.:.:.:.:.:.:.........................:.:.:.:.:.:.:.:::::::::::
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.970124150025.17138A-100000>