Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2005 16:22:07 -0500
From:      Lee Capps <lcapps@cteresource.org>
To:        freebsd-questions@freebsd.org, questions@freebsd.org
Subject:   Re: Changing shells (was: pkg_add not installing lsof (and other programs)?)
Message-ID:  <20051215212206.GG27460@otis.cteresource.org>
In-Reply-To: <6e4453640512151258q7167d253t82f50f423002822b@mail.gmail.com>
References:  <6e4453640512151258q7167d253t82f50f423002822b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
At 13:58 Thu 15 Dec 2005, TuxGirl wrote:
> > If you install bash, be aware that you have that you have to add it
> > (with it's full path, /usr/local/bin/bash) to /etc/shells befor trying
> > to change your shell (with 'pw usermod yourname -s bash').
> 
> amon-re# pw usermod erins -s zsh
> pw: no default shell available or defined
> 
> I've added it to /etc/shells:
> # $FreeBSD: src/etc/shells,v 1.5 2000/04/27 21:58:46 ache Exp $
> #
> # List of acceptable shells for chpass(1).
> # Ftpd will not allow users to connect who are not using
> # one of these shells.
> 
> /bin/sh
> /bin/csh
> /bin/tcsh
> /usr/local/bin/zsh
> /usr/local/bin/rzsh
> /usr/local/bin/bash
> 
> When I log in as my user (erins), if I run ps, it shows sh as the
> shell running.  Am I missing an important step someplace here?

Try: man chsh

It's just an aspect of the same command, but 

chsh -s bash username

should work.  (Worked for me!)

HTH,

-- 
Lee Capps
Technology Specialist
CTE Resource Center





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