Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 1999 11:34:59 -0700 (PDT)
From:      gene@nttmcl.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   bin/11168: pw(8) usermod does not recognize -w flag without -h flag
Message-ID:  <19990416183459.AA40014E63@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         11168
>Category:       bin
>Synopsis:       pw(8) usermod does not recognize -w flag without -h flag
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 11:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Eugene M. Kim
>Release:        3.1-RELEASE and 4.0-CURRENT
>Organization:
NTT Multimedia Communications Laboratories
>Environment:
FreeBSD asiale.ia.cp 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Tue Apr  6 10:10:40 PDT 1999     root@asiale.ia.cp:/usr/src/sys/compile/ASIALE  i386
>Description:
The synopsis of pw(8) manpage says that `pw usermod' accepts -w flag, 
which resets a user's password in one of predefined ways.  However, -w 
flag does not work standalone but requires the special `-h' flag, and 
this fact is not stated in the manpage.
>How-To-Repeat:
Create a temporary user, say `test1', then issue the following command:

			pw usermod test1 -w none

According to the documentation, this will set the user's password to 
nothing (i.e. a null field in master.passwd), but pw does not touch the 
password field at all.

>Fix:
The manpage should be updated to state that the -w option takes effect 
only when it is used with the -h option'.

>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?19990416183459.AA40014E63>