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

Luke Kanies luke at
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
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 21 19:00:32 GMT 2006
>Originator:     Luke Kanies
>Release:        5.4-RELEASE
Reductive Labs
FreeBSD 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005     root at  i386
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.
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.


More information about the freebsd-bugs mailing list