Date: Wed, 31 Jan 2001 15:57:14 -0600 (CST) From: Shawn Barnhart <swb@cmenoc.campbell-mithun.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/24762: pw doesn't allow false as a shell Message-ID: <200101312157.f0VLvEb33878@cmenoc.campbell-mithun.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101312157.f0VLvEb33878>