[luau] Changing shells

Dustin Cross dusty at sandust.com
Thu Jul 11 13:28:00 PDT 2002


hmmm!

I just looked and SuSE (7.3 Sparc64) doesn't even have the Bourne shell
(sh) installed, instead they do like MonMotha said and link /bin/sh -
> /bin/bash (bash2 - GNU Bourne-Again SHell).  After a little research on
http://www.deja.com I have found that several linux systems do this and to
change it will have negative results.

OpenBSD on the other hand has the Bourne shell as default, bash must be
installed manually.  I don't know which way FreeBSD is.

Dusty



> Aloha
>
> Each users default shell is defined in the last field of /etc/passwd.
> Simply edit edit the proper user from /bin/sh to /bin/bash and when you
> log in next time you will have bash.  I don't know about FreeBSD, but
> to change root's default shell in OpenBSD you have to edit something
> else, which I can't  remember of teh top of my head.
>
> I wouldn't change /bin/sh to point to /bin/bash as that could really
> mess things up.  teh different shells do things differently and there
> are a lot of things that use /bin/sh and if bash1 doesn't work exactly
> the same (which I don't think it does) you will be in trouble.
>
> Dusty
>
>
>
>
>> 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.  Be aware that bash1 is old and may not
>> run newer  scripts.  Also, changing that link will break any scripts
>> on your system  that assume #!/bin/sh will have it parsed by csh (so
>> check your init  scripts).
>>
>> --MonMotha
>>
>> Jon Reynolds wrote:
>>> I have a freebsd4.6 box and when it boots it automagically goes into
>>> the csh shell. I installed bash1 and want it to be the default
>>> systemwide shell. Where would I make the change for this? I have been
>>> looking around and found how to do it for users but not systemwide. I
>>> have a command in my /etc/rc.local that won't start using the csh
>>> shell I get an 'ambiguous output redirect' message. When I switch
>>> over to sh and run the same command it works just fine. But I need
>>> this command to start at system bootup time. Any ideas?
>>>
>>> Jon
>>
>> _______________________________________________
>> LUAU mailing list
>> LUAU at videl.ics.hawaii.edu
>> http://videl.ics.hawaii.edu/mailman/listinfo/luau
>
>
>
> _______________________________________________
> LUAU mailing list
> LUAU at videl.ics.hawaii.edu
> http://videl.ics.hawaii.edu/mailman/listinfo/luau






More information about the LUAU mailing list