[luau] Changing shells
Michael Ableyev
charon at netzero.net
Thu Jul 11 13:32:00 PDT 2002
There is (on linux at least) a chsh command that changes the default shell for the currently logged on user or if a parameter with a
username is specified then it changes the default shell for that user.
----- Original Message -----
From: "Dustin Cross" <dusty at sandust.com>
To: <luau at videl.ics.hawaii.edu>
Sent: Thursday, July 11, 2002 13:12
Subject: Re: [luau] Changing shells
> 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