From owner-freebsd-questions@FreeBSD.ORG Thu Dec 15 22:12:29 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 099F516A41F for ; Thu, 15 Dec 2005 22:12:29 +0000 (GMT) (envelope-from chand0s@list.ru) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D75343D68 for ; Thu, 15 Dec 2005 22:12:23 +0000 (GMT) (envelope-from chand0s@list.ru) Received: from [217.145.215.1] (port=2215 helo=lazy.lazy.org) by mx1.mail.ru with asmtp id 1En1Kn-000HYw-00 for freebsd-questions@freebsd.org; Fri, 16 Dec 2005 01:12:22 +0300 To: "FreeBSD Questions" References: <6e4453640512151258q7167d253t82f50f423002822b@mail.gmail.com> Message-ID: Date: Fri, 16 Dec 2005 01:11:59 +0300 From: "Vasilkov Vasily" Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <6e4453640512151258q7167d253t82f50f423002822b@mail.gmail.com> User-Agent: Opera M2/8.0 (Win32, build 7561) Subject: Re: Changing shells (was: pkg_add not installing lsof (and other programs)?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Dec 2005 22:12:29 -0000 On Thu, 15 Dec 2005 23:58:44 +0300, 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? If you wanna change default shell, edit /etc/master.passwd and run pwd_mkdb -p /etc/master.passwd