Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Dec 2004 06:53:58 -0900
From:      Andy Firman <andy@firman.us>
To:        freebsd-questions@freebsd.org
Subject:   Re: bash - superuser
Message-ID:  <20041224155358.GB15993@akroteq.com>
In-Reply-To: <200412202154.iBKLsrt13676@clunix.cl.msu.edu>
References:  <41C6EE24.4080606@vilot.com> <200412202154.iBKLsrt13676@clunix.cl.msu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 20, 2004 at 04:54:51PM -0500, Jerry McAllister wrote:
> Then the thing to do is create another root account and make the 
> default shell for that one be bash, leaving the root root be /bin/sh.

So for those of us that want to go back to the way things should be,
(leaving root shell be /bin/sh)  I fire up vipw and change this:

root:*:0:0:Charlie &:/root:/usr/local/bin/bash

to this:

root:*:0:0:Charlie &:/root:/bin/sh

Right?

Then I keep using sudo all the time.  But if I need to do some big
work as root, I can su to root and get bash simply by typing:

/usr/local/bin/bash

Right?


Just want to be clear on this.

Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041224155358.GB15993>