Subject: bin/15532: useradd handling of -D is not well documented, or intuitive
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 02/08/2002 01:53:34
>Number:         15532
>Category:       bin
>Synopsis:       useradd handling of -D is not well documented, or intuitive
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 08 00:53:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tim Rightnour
>Release:        NetBSD 1.5.1
>Organization:
	
>Environment:
	
System: NetBSD polaris 1.5.1 NetBSD 1.5.1 (POLARIS) #2: Tue Nov 6 16:00:08 MST 2001 root@polaris:/usr/src/1.5.1/sys/arch/i386/compile/POLARIS i386


>Description:
If you run useradd -D as root, and you do not have a usermgmt.conf file, it
creates one.  This is not documented as a side effect in the manpage.

In addition, it would be nice if there was a way to shut this feature off, ie,
to look without touching.
	
>How-To-Repeat:
rm /etc/usermgmt.conf
useradd -D
man useradd
	
>Fix:
Add an additional option to stop creation of the usermgmt.conf file.
Document the fact that -D creates one by default.
	
>Release-Note:
>Audit-Trail:
>Unformatted: