bash - superuser

Josh Paetzel josh at tcbug.org
Fri Dec 24 08:53:01 PST 2004


On Friday 24 December 2004 16:06, Andrew L. Gould wrote:
> On Friday 24 December 2004 09:53 am, Andy Firman wrote:
> > 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.
>
> I think that should do it.
>
> If you wanted root to use bash all the time, couldn't you
> compile/install a static version into /bin/?  I've never done it;
> but I know that NetBSD has some statically linked shells in their
> ports (pkgsrc) that install to /bin/, so I would think it should be
> possible.
>
> Best of luck,
>
> Andrew Gould

I've always been curious as to why you can't(shouldn't?) just change 
the shell that root uses.

-- 
Thanks,

Josh Paetzel


More information about the freebsd-questions mailing list