Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 1996 20:48:07 -0800 (PST)
From:      Doug White <dwhite@riley-net170-164.uoregon.edu>
To:        JOHN <JSINNOTT@POMONA.EDU>
Cc:        questions@FreeBSD.org
Subject:   Re: How to change default shell?
Message-ID:  <Pine.BSF.3.91.960102204546.456G-100000@gdi.uoregon.edu>
In-Reply-To: <01HZJNGCT0EA8WWO1J@POMONA.EDU>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 <user>')

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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960102204546.456G-100000>