From nobody@FreeBSD.org  Tue Feb 29 01:26:10 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id AB5F037BA96
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Feb 2000 01:26:10 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id BAA41504;
	Tue, 29 Feb 2000 01:26:10 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200002290926.BAA41504@freefall.freebsd.org>
Date: Tue, 29 Feb 2000 01:26:10 -0800 (PST)
From: niederacher@fh-vorarlberg.ac.at
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: /usr/sbin/pw pw(8) fails for a specific username "mod"
X-Send-Pr-Version: www-1.0

>Number:         17069
>Category:       misc
>Synopsis:       /usr/sbin/pw pw(8) fails for a specific username "mod"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    davidn
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 29 01:30:01 PST 2000
>Closed-Date:    Sun Jun 18 12:40:17 EST 2000
>Last-Modified:  Sun Jun 18 12:41:19 EST 2000
>Originator:     Egon Niederacher
>Release:        3.2
>Organization:
Fachhochschule Vorarlberg
>Environment:
FreeBSD gnu.tvlbg.ac.at 3.2-19990810-STABLE FreeBSD 3.2-19990810-STABLE #3: Tue Sep 14 19:23:56 CEST 1999     root@gnu.tvlbg.ac.at:/usr/src/sys/compile/GNU  i386
>Description:
our account management tools uses pw(8) for manipulating unix accounts on several hosts.
we have always used the "short mode" when specifying usernames:
e.g. "pw useradd <username>" instead off "pw useradd -n <username>"

today we tried to create a user named "mod". This paricular username
failed in "short mode" (pw useradd mod ... and pw usermod mod ...) on
several machines running different versions of freebsd.

however rewriting the scripts to issue an pw useradd -n mod ... and 
pw usermod -n mod ... solved the problem

>How-To-Repeat:
as described above: try
pw useradd mod ...
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->davidn  
Responsible-Changed-By: cpiazza 
Responsible-Changed-When: Fri Mar 17 20:53:23 PST 2000 
Responsible-Changed-Why:  
Over to the author of pw 
State-Changed-From-To: open->closed 
State-Changed-By: davidn 
State-Changed-When: Sun Jun 18 12:40:17 EST 2000 
State-Changed-Why:  
Fixed: 
/home/ncvs/src/usr.sbin/pw/pw.c,v  <--  pw.c 
new revision: 1.19; previous revision: 1.18 
Thanks for the bug report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17069 
>Unformatted:
