Changing shells (was: pkg_add not installing lsof (and other programs)?)

Vasilkov Vasily chand0s at list.ru
Thu Dec 15 14:12:29 PST 2005


On Thu, 15 Dec 2005 23:58:44 +0300, TuxGirl <tuxgirl at gmail.com> 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?

   If you wanna change default shell, edit /etc/master.passwd and run
   pwd_mkdb -p /etc/master.passwd


More information about the freebsd-questions mailing list