bin/100684: 'pw groupadd' does not accept -o, contrary to man page

Luke Kanies luke at madstop.com
Fri Jul 21 19:00:42 UTC 2006


>Number:         100684
>Category:       bin
>Synopsis:       'pw groupadd' does not accept -o, contrary to man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 21 19:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Luke Kanies
>Release:        5.4-RELEASE
>Organization:
Reductive Labs
>Environment:
FreeBSD freebsd1.madstop.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The man page of 'pw' claims that both useradd and groupadd arguments accept the '-o' option, to override GUI or UID.  This works fine with useradd, but not with groupadd.
>How-To-Repeat:
Try to call 'pw groupadd' with -o:

luke at freebsd1(0) $ sudo pw groupadd group2 -g 125 -o
pw: illegal option -- o
pw: unknown switch
luke at freebsd1(64) $ 

The number in parens, 0 then 64, is $?; thus, pw is exiting with the code 64.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list