From owner-freebsd-bugs Wed Jan 31 14: 0:19 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 807D937B67D for ; Wed, 31 Jan 2001 14:00:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0VM01n38515; Wed, 31 Jan 2001 14:00:01 -0800 (PST) (envelope-from gnats) Received: from cmenoc.campbell-mithun.com (cmenoc.campbell-mithun.com [192.159.32.200]) by hub.freebsd.org (Postfix) with ESMTP id 925BB37B6A8 for ; 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 Reply-To: swb@cmenoc.campbell-mithun.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/24762: pw doesn't allow false as a shell Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 24762 >Category: bin >Synopsis: pw doesn't allow false as a shell >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 31 14:00:01 PST 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message