BASH as root shell (static linking)
jerrymc at msu.edu
Fri Oct 5 17:11:22 PDT 2007
On Sat, Oct 06, 2007 at 12:32:22AM +0100, RW wrote:
> On Fri, 5 Oct 2007 16:29:36 -0700 (PDT)
> Philip Hallstrom <freebsd at philip.pjkh.com> wrote:
> > > On 06/10/2007, at 5:45 AM, RW wrote:
> > >
> > >> On Sat, 6 Oct 2007 04:54:26 +1000
> > >> Jerahmy Pocott <quakenet1 at optusnet.com.au> wrote:
> > >>
> > >>> Hello,
> > >>>
> > >>> I'm wanting to use BASH as my root shell, so I compiled a
> > >>> statically linked
> > >>
> > >> I would suggest using bash as your toor shell instead. toor exist
> > >> precisely for this purpose.
> > >
> > > Yeah, I'v done that in the past, but I really dislike csh, I don't
> > > want to use
> > > it EVER =p
> I don't understand, why would you see csh if you login as toor
It has no shell in the /etc/passwd entry by default.
Maybe it then defaults to csh (which is really tcsh) if nothing
else is given. Seems strange if it does that, but???
Or, maybe the OP managed to get it put in the /etc/passwd entry.
Anyway, I prefer tcsh, but if the OP just has to have it bash,
it is easy to do.
All the OP has to do is install bash from /usr/ports/shells/bash and
then edit /etc/passwd to change the last field for toor - after the last
colon - to point to where it installs bash (/usr/local/bin/bash maybe)
and then it should all be fine.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions