From taob@io.org  Sat Jan  6 00:27:06 1996
Received: from zip.io.org (zip.io.org [198.133.36.80])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id AAA04358
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 6 Jan 1996 00:27:00 -0800 (PST)
Received: (from taob@localhost) by zip.io.org (8.6.12/8.6.12) id DAA09306; Sat, 6 Jan 1996 03:25:56 -0500
Message-Id: <199601060825.DAA09306@zip.io.org>
Date: Sat, 6 Jan 1996 03:25:56 -0500
From: taob@io.org
Reply-To: taob@io.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: "chpass -s" to change shell does not work
X-Send-Pr-Version: 3.2

>Number:         933
>Category:       misc
>Synopsis:       "chpass -s <shell>" does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan  6 00:30:01 PST 1996
>Closed-Date:    Sat Jan 6 16:03:27 MET 1996
>Last-Modified:  Sat Jan  6 16:04:22 MET 1996
>Originator:     Brian Tao
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Internex Online Inc., Toronto, Ontario, Canada
>Environment:

	Using libdescrypt, /etc/shells contains:

# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/csh
/bin/sh
/usr/local/bin/bash
/usr/local/bin/ksh
/usr/local/bin/tcsh
/usr/local/bin/zsh


>Description:

	Using "chpass -s <shell>" or "chsh -s <shell>" to change a user's
login shell causes a rebuild of the passwd databases, but no changes
are visible in /etc/passwd or /etc/master.passwd.

>How-To-Repeat:

% whoami
taob
% fgrep taob: /etc/passwd
taob:*:850:20:Brian Tao,,,:/u/staff/taob:/usr/local/bin/tcsh
% chsh -s /bin/csh
chsh: rebuilding the database...
chsh: done
% fgrep taob: /etc/passwd
taob:*:850:20:Brian Tao,,,:/u/staff/taob:/usr/local/bin/tcsh


>Fix:
	
	Run "chpass" or "chsh" without any command line options to use
an interactive editor to change user information.

>Release-Note:
>Audit-Trail:

From: J Wunsch <j@uriah.heep.sax.de>
To: taob@io.org
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/933: "chpass -s" to change shell does not work
Date: Sat, 6 Jan 1996 15:54:34 +0100 (MET)

 As taob@io.org wrote:
 > 
 > 	Using "chpass -s <shell>" or "chsh -s <shell>" to change a user's
 > login shell causes a rebuild of the passwd databases, but no changes
 > are visible in /etc/passwd or /etc/master.passwd.
 
 Neither did -p or -a work.  The YP initialization happened after the
 option-specific settings have already been performed, and hence the
 new entries were clobbered.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sat Jan 6 16:03:27 MET 1996 
State-Changed-Why:  
Fixed in: 
/home/ncvs/src/usr.bin/chpass/chpass.c,v  <--  chpass.c 
new revision: 1.6; previous revision: 1.5 

>Unformatted:
