Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 13:27:15 +1000
From:      Jim Mock <jim@blues.ghis.net>
To:        Michael Henry <mhenry@pgrad.cs.usyd.edu.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Changing shell
Message-ID:  <19990917132715.A1509@blues.ghis.net>
In-Reply-To: <19990917031515.4383B14DDB@hub.freebsd.org>
References:  <128e5100.251309c3@aol.com> <19990917031515.4383B14DDB@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
[Reply sent to -questions, this doesn't belong on -newbies]

On Fri, 17 Sep 1999 at 13:15:06 +1000, Michael Henry wrote:
> 
> > Does anyone know how to change the root shell from csh to bash?

The default root shell is sh, not csh.

> It is my understanding that changing root's shell is A Bad Thing.

This has been covered a *ton* of times on the lists.  It's not a big
deal with FreeBSD because you can always go into single-user mode
where you're prompted for a shell if you mess up root's shell.

> You shouldn't be running as root often enough for it to be an
> inconvenience anyway.

Good point :-)
 
> There is an account "toor" which also has UID 0, and uses bash
> as it's login shell.

Not by default.  It also uses sh.  What I usually do is set a
password for toor, leave it's shell as sh, and change root's to tcsh
so if needed, I can fall back to toor.

To answer the original question, man chfn, man chsh, and man vipw.
Take your pick :-)

- Jim

-- 
- Jim Mock - jim@blues.ghis.net - systems administrator - ghis.NET -
- work: http://www.ghis.net/ - personal: http://www.ghis.net/~jim/ -
- FreeBSD 'zine: http://www.freebsdzine.org/ - jim@freebsdzine.org -
- The FreeBSD Project -- http://www.FreeBSD.org/ - jim@FreeBSD.org -


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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