From owner-freebsd-questions Wed Jan 3 04:20:21 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA03154 for questions-outgoing; Wed, 3 Jan 1996 04:20:21 -0800 (PST) Received: from MediaCity.com (root@easy1.mediacity.com [205.216.172.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA03149 Wed, 3 Jan 1996 04:20:15 -0800 (PST) Received: (from brian@localhost) by MediaCity.com (8.6.11/8.6.9) id EAA18367; Wed, 3 Jan 1996 04:22:49 -0800 From: Brian Litzinger Message-Id: <199601031222.EAA18367@MediaCity.com> Subject: Re: How to change default shell? To: jmb@freebsd.org (Jonathan M. Bresler) Date: Wed, 3 Jan 1996 04:22:49 -0800 (PST) Cc: JSINNOTT@POMONA.EDU, questions@freebsd.org In-Reply-To: from "Jonathan M. Bresler" at Jan 3, 96 00:36:55 am X-Mailer: ELM [version 2.4 PL24 ME8b] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org Precedence: bulk > > On Tue, 2 Jan 1996, JOHN wrote: > > > I can't find a usermod command, so first I tried directly editing the > > /etc/passwd file. But that did not work, so I then tried editing the > > /etc/master.passwd file as well (should this be done?) I just want to have > > bash as the default shell rather than csh, but even with these fields changed, > > csh remains the default. > two steps are required. > 1. as root use vipw, a special version of vi, to edit the passwd file > find the entry for the user and replace /bin/csh with the path > to bash on your system. (probably /usr/local/bin/bash) > 2. edit /etc/shells. add a line containing the path to bash on your > system. (this lets a bash user ftp into the machine) One could also try the 'chfn' command. Brian Litzinger brian@mediacity.com