From owner-freebsd-questions Tue Jan 2 20:47:54 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA08891 for questions-outgoing; Tue, 2 Jan 1996 20:47:54 -0800 (PST) Received: from gdi.uoregon.edu (cisco-ts12-line14.uoregon.edu [128.223.150.146]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id UAA08885 for ; Tue, 2 Jan 1996 20:47:48 -0800 (PST) Received: (from dwhite@localhost) by gdi.uoregon.edu (8.6.12/8.6.12) id UAA00526; Tue, 2 Jan 1996 20:48:07 -0800 Date: Tue, 2 Jan 1996 20:48:07 -0800 (PST) From: Doug White Reply-To: dwhite@resnet.uoregon.edu To: JOHN cc: questions@FreeBSD.org Subject: Re: How to change default shell? In-Reply-To: <01HZJNGCT0EA8WWO1J@POMONA.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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. Either: . login as the user and run `chsh' (or as root: `chsh ') OR . su to root, run `vipw' and change the last field accordingly. Editing the passwd file requires special lock files and such, and vipw and chsh make the proper changes. Might want to change options in the `adduser' script as well. Doug White | University of Oregon Internet: dwhite@gladstone.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major