Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 1996 03:25:56 -0500
From:      taob@io.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/933: "chpass -s" to change shell does not work
Message-ID:  <199601060825.DAA09306@zip.io.org>
Resent-Message-ID: <199601060830.AAA04491@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         933
>Category:       misc
>Synopsis:       "chpass -s <shell>" does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan  6 00:30:01 PST 1996
>Last-Modified:
>Originator:     Brian Tao
>Organization:
Internex Online Inc., Toronto, Ontario, Canada
>Release:        FreeBSD 2.1-STABLE i386
>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.

>Audit-Trail:
>Unformatted:



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