[luau] Changing shells

Carl Tucker cft at panix.com
Thu Jul 11 16:03:01 PDT 2002


On Thu, Jul 11, 2002 at 05:56:18PM -0500, MonMotha wrote:
> Changing the default shell on unix (linux, bsd, commercial unixes, etc) 
> generally means changing the link /bin/sh to whatever you want.  In this 
> case, /bin/sh is probably a symlink to /bin/csh.  To change to bash, 
> link it to /bin/bash. 

Aagh!  No, don't do that.  /bin/sh must be a bourne-family shell,
preferably sh itself (for speed).  This is a POSIX mandated shell
that many programs and utilities depend on to work as expected.

FreeBSD has csh as the default shell for root, and an additional
UID 0 account called toor.  The toor account is the one you should
use if you want to use a different shell than csh.  You can change
it with chsh(1) or vipw(8).

Nothing prevents you from changing root's shell, of course, but
it can come back to bite you.  For instance, on my system, bash
is /usr/local/bin/bash.  What if my system crashes and I have to
boot single user with /usr unmounted.  Uh oh, no shell.

Root's shell should be on the root partition, and be statically
linked - the other kicker.  If the shared libraries your shell
is linked against are in /usr/include, same problem if /usr
is unmounted.

For more info, see /usr/share/doc/faq/index.html , section 7.12
and /usr/share/doc/handbook/index.html , section 3.7

-- 
Carl Tucker
cft at panix.com
flestrin at worldnet.att.net
tuckercl at phnsy.navy.mil



More information about the LUAU mailing list