Date: Fri, 24 Jan 1997 08:45:22 -0700 (MST) From: Wes Peters <softweyr@xmission.com> To: questions@freebsd.org Subject: Re: How can I chang my root shell Message-ID: <199701241545.IAA03070@obie.softweyr.ml.org> In-Reply-To: <Pine.BSF.3.95.970122191618.411A-100000@localhost> References: <9700228539.AA853976013@ccsmtp2.eccs.com> <Pine.BSF.3.95.970122191618.411A-100000@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
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. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701241545.IAA03070>