Subject: bin/15791: useradd -r doesn't work correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <martti.kuparinen@iki.fi>
List: netbsd-bugs
Date: 03/03/2002 13:58:49
>Number: 15791
>Category: bin
>Synopsis: useradd -r doesn't work correctly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 03 04:59:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Martti Kuparinen
>Release: NetBSD 1.5ZA
>Organization:
>Environment:
System: NetBSD localhost 1.5ZA NetBSD 1.5ZA (OMNIBOOK) #51: Fri Mar 1 06:59:17 UTC 2002 root@localhost:/work/netbsd/src/sys/arch/i386/compile/OMNIBOOK i386
Architecture: i386
Machine: i386
>Description:
There's something wrong in useradd's -r flag in netbsd-1-5. On -current
everything works okay:
ROOT localhost:~> uname -r
1.5ZA
ROOT localhost:~> useradd -m -r2000..2009 foo
ROOT localhost:~> id foo
uid=2000(foo) gid=100(users) groups=100(users)
As seen from the output, the user got an uid from the given range.
The same command on 1.5.x doesn't work, i.e. the user's uid is not
from the specified range:
ROOT fw:~> uname -r
1.5.3_ALPHA
ROOT fw:~> useradd -m -r2000..2009 foo
ROOT fw:~> id foo
uid=1001(foo) gid=100(users) groups=100(users)
I have not modified /etc/usermgmt.conf in any way...
>How-To-Repeat:
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: