Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jan 1996 04:22:49 -0800 (PST)
From:      Brian Litzinger <brian@MediaCity.com>
To:        jmb@freebsd.org (Jonathan M. Bresler)
Cc:        JSINNOTT@POMONA.EDU, questions@freebsd.org
Subject:   Re: How to change default shell?
Message-ID:  <199601031222.EAA18367@MediaCity.com>
In-Reply-To: <Pine.BSF.3.91.960103003341.3695C-100000@Aspen.Woc.Atinc.COM> from "Jonathan M. Bresler" at Jan 3, 96 00:36:55 am

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.
> 	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601031222.EAA18367>