From swb@cmenoc.campbell-mithun.com  Wed Jan 31 13:57:16 2001
Return-Path: <swb@cmenoc.campbell-mithun.com>
Received: from cmenoc.campbell-mithun.com (cmenoc.campbell-mithun.com [192.159.32.200])
	by hub.freebsd.org (Postfix) with ESMTP id 925BB37B6A8
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 31 Jan 2001 13:57:15 -0800 (PST)
Received: (from swb@localhost)
	by cmenoc.campbell-mithun.com (8.11.1/8.11.1) id f0VLvEb33878;
	Wed, 31 Jan 2001 15:57:14 -0600 (CST)
	(envelope-from swb)
Message-Id: <200101312157.f0VLvEb33878@cmenoc.campbell-mithun.com>
Date: Wed, 31 Jan 2001 15:57:14 -0600 (CST)
From: Shawn Barnhart <swb@cmenoc.campbell-mithun.com>
Reply-To: swb@cmenoc.campbell-mithun.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: pw doesn't allow false as a shell
X-Send-Pr-Version: 3.2

>Number:         24762
>Category:       bin
>Synopsis:       pw doesn't allow false as a shell
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 31 14:00:01 PST 2001
>Closed-Date:    Mon May 28 14:25:00 PDT 2001
>Last-Modified:  Mon May 28 14:25:07 PDT 2001
>Originator:     Shawn Barnhart
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Campbell Mithun
>Environment:

FreeBSD cmenoc.campbell-mithun.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Tue Jan 30 09:52:02 CST 2001     swb@cmenoc.campbell-mithun.com:/usr/obj/usr/src/sys/CMENOC i386

>Description:

I set up the following pw.conf file to add users.  I wanted to use /usr/bin/false
as the default shell for these users.  When I use "false" as the default
shell, pw incorrectly evaluates this as an "empty" value when in fact it
should be a valid value.

defaultpasswd random
home /ftp
shellpath /usr/bin
shells  false
defaultshell    false
defaultclass    ftpusers
minuid          2000
maxuid          3000
mingid          2000
maxgid          3000
defaultgroup
expire_days     0
password_days   0


>How-To-Repeat:

Set false as the default shell in pw.conf.

>Fix:

No workaround I'm aware of.  Have to use another value for the shell or fix
pw(8).


>Release-Note:
>Audit-Trail:

From: Kris Kennaway <kris@obsecurity.org>
To: Shawn Barnhart <swb@cmenoc.campbell-mithun.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/24762: pw doesn't allow false as a shell
Date: Fri, 2 Feb 2001 02:45:48 -0800

 --jho1yZJdad60DJr+
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Wed, Jan 31, 2001 at 03:57:14PM -0600, Shawn Barnhart wrote:
 
 > I set up the following pw.conf file to add users.  I wanted to use /usr/bin/false
 > as the default shell for these users.  When I use "false" as the default
 > shell, pw incorrectly evaluates this as an "empty" value when in fact it
 > should be a valid value.
 
 Is /usr/bin/false in /etc/shells?
 
 Kris
 
 --jho1yZJdad60DJr+
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.4 (FreeBSD)
 Comment: For info see http://www.gnupg.org
 
 iD8DBQE6eo/bWry0BWjoQKURAvtuAKCX2Xvnpw+b1RAqd2akltNqDbA3JwCgp5wY
 vJQFOcWfEKGNF2k626JxBkI=
 =iEJb
 -----END PGP SIGNATURE-----
 
 --jho1yZJdad60DJr+--
 
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Mon May 28 14:25:00 PDT 2001 
State-Changed-Why:  
timed out. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24762 
>Unformatted:
