Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Sep 2006 12:14:35 -0400
From:      "Jerold McAllister" <jerrymc@msu.edu>
To:        Joshua Lewis <joshua.lewis@familyfunzone.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD Shells
Message-ID:  <E1GLj00-0002Dv-NN@sys20.mail.msu.edu>
In-Reply-To: <1157680784.3025.7.camel@freebsd.ffnz.net>
References:  <1157680784.3025.7.camel@freebsd.ffnz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Joshua Lewis writes: 

> My shell mysteriously changed. I don't know what port changed the shell
> but how do I put it back to normal. I liked how when I was logged in or
> su'ed to root I had a prompt with the computer name and a hash sign. Now
> I have a percent sign and when I try to change the shell with chsh I can
> not get it to work anymore. 
> 
> I am doing chsh -s /bin/sh is that correct? Is that the default BSD
> shell? 

It sounds like either your .profile (for sh) or your .cshrc (for tcsh)
is what got changed.    That is where the prompt will be determined by
the setting of the 'prompt' variable. 

But, to your specific question, you should be able to set your shell
using chsh.   I think you only need the -s if you call it by 'chpass'
instead of chsh, but I am not sure. 

If you have root access, then you can also change your shell in the passwd
file directly using  vipw(8).   Just use vipw to edit the shell field
in the passwd file entry and write and exit out of vipw.  If you do not
have root access, then you cannot modify it with vipw. 

If there was no shell specified in the shell field, the system would have
given you /bin/sh by default.   If the shell you are trying to change to
or from is not listed in //etc/shells, then it will not allow you to
make the change with the chsh command.   If you have root access, you can
modify the content of /etc/shells to add any that you need to use. 

////jerry
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" 
> 
 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1GLj00-0002Dv-NN>