*BSD News Article 80888


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!www.nntp.primenet.com!nntp.primenet.com!feed1.news.erols.com!news
From: Ken Bigelow <kbigelow@www.play-hookey.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Is /bin/sh OK?
Date: Thu, 17 Oct 1996 20:08:20 +0000
Organization: Erol's Internet Services
Lines: 55
Message-ID: <32669234.6C1@www.play-hookey.com>
References: <JOHN.96Oct10165658@burdell.ece.arizona.edu> <325E882E.95F@www.play-hookey.com> <5438sl$pi@usenet.srv.cis.pitt.edu>
Reply-To: kbigelow@www.play-hookey.com
NNTP-Posting-Host: kenjb05.play-hookey.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (Win16; U)

James L Fox wrote:
> 
> In article <325E882E.95F@www.play-hookey.com>,
> Ken Bigelow  <kbigelow@www.play-hookey.com> wrote:
> >John Galbraith wrote:
> >>
> >> I recently installed the 2.1.5-RELEASE. ( It went totally smoothly
> >> ......
> >
> >man chpass. You can do 'chpass -s bash' to change your own shell.
> >--
> >Ken
> >
> 
> This thread makes me suspect I'm missing something important about
> root, toor, /bin/csh, /bin/sh,,,,,,
> 
> MUST root run with /bin/csh?

Not at all. I'm running bash on all of mine.


> 
> How can I get chpass (chsh, etc) to really update the database
> and change an account's shell from /bin/csh to /bin/sh?
> 
>    1. /etc/shells contains both entries.
>    2. Either as su or user, the command
>       chpass -s /bin/sh [user]    // user included when su
> 
> results in the following:
> chpass: rebuilding the database...
> chpass: done
> 
> However, /etc/passwd and /etc/master.passwd get a fresh date/time
> entry (I heard the disk) but they are unchanged.

OK, try this:

chfn		(for CHange Full Name)

these will get you an edit session with your selected editor, on a file
which contains whatever information you are allowed to change. This
includes your password, in encrypted form, so be careful!

One of the things you can change is your shell. When you exit the edit
session, the password files will be updated with whatever changes you
made, including the shell you want.

-- 
Ken

Are you interested in   |
byte-sized education    |   http://www.play-hookey.com
over the Internet?      |