From owner-freebsd-bugs Fri Apr 16 11:42:28 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2AD8F15979 for ; Fri, 16 Apr 1999 11:42:24 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id LAA05375; Fri, 16 Apr 1999 11:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id AA40014E63; Fri, 16 Apr 1999 11:34:59 -0700 (PDT) Message-Id: <19990416183459.AA40014E63@hub.freebsd.org> Date: Fri, 16 Apr 1999 11:34:59 -0700 (PDT) From: gene@nttmcl.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/11168: pw(8) usermod does not recognize -w flag without -h flag Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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