Bug 24762

Summary: pw doesn't allow false as a shell
Product: Base System Reporter: Shawn Barnhart <swb>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description Shawn Barnhart 2001-01-31 22:00:01 UTC
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

Fix: 

No workaround I'm aware of.  Have to use another value for the shell or fix
pw(8).
How-To-Repeat: 
Set false as the default shell in pw.conf.
Comment 1 Kris Kennaway 2001-02-02 10:45:48 UTC
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
Comment 2 Poul-Henning Kamp freebsd_committer freebsd_triage 2001-05-28 22:25:00 UTC
State Changed
From-To: open->closed

timed out.