Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 13:20:15 -0500
From:      Jerry McAllister <>
To:        Garance A Drosihn <>
Cc:        David Christensen <>,
Subject:   Re: FreeBSD 7.0-RELEASE-i386 will changing root shell break anything?
Message-ID:  <>
In-Reply-To: <p06240800c58dae0c7162@[]>
References:  <F763DD8CE6D8435981C4AE71F4C03983@p43400e> <p06240800c58dae0c7162@[]>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, Jan 09, 2009 at 08:46:54PM -0500, Garance A Drosihn wrote:

> At 2:09 PM -0800 1/4/09, David Christensen wrote:
> >
> >I have changed the root shell to Bash on another machine I use as a CVS
> >server and haven't noticed any issues yet, but I've been wondering if
> >I'm setting myself up for problems by doing so.
> >
> >
> >Does anybody know if it's okay to change the root shell on FreeBSD
> >7.0-RELEASE-i386?

Why do that?
Just create your own root account, put what you want for a shell
on that account and use it.

Use vipw.   Copy the root line and then change the _second_ one
to be your own root id    - say,  Rgad  - and make a loging in directory 
for it.  Change the directory part of the pw entry to be that and
the the shell to be what you want.   

Then change the password to be what you want or use some pwvault utility
or whatever.   Just make sure you specify the second root account  (Rgad)
when doing so or it will change the real root's password.


> What I do is add the following lines to /root/.login :
> if ($?prompt) then
>    if ( -x /usr/local/bin/bash ) then
>       # echo "Switching to bash"
>       setenv SHELL /usr/local/bin/bash
>       exec /usr/local/bin/bash -login
>    endif
> endif
> I've been doing this for at least 10 years.  I haven't had any
> problems with it, but Your Mileage Might Vary.
> -- 
> Garance Alistair Drosehn            =
> Senior Systems Programmer           or
> Rensselaer Polytechnic Institute    or
> _______________________________________________
> mailing list
> To unsubscribe, send any mail to ""

Want to link to this message? Use this URL: <>