[Bug 269193] pw(8) usermod: numeric ID (uid) in lieu of name for option -n
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 28 Jan 2023 12:30:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269193 Graham Perrin <grahamperrin@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|misc |Manual Pages See Also| |https://reviews.freebsd.org | |/D2700 Version|CURRENT |Latest URL| |https://cgit.freebsd.org/sr | |c/tree/usr.sbin/pw/ CC| |doc@FreeBSD.org, | |dteske@FreeBSD.org Product|Base System |Documentation Summary|manpage for pw seems |pw(8) usermod: numeric ID |unclear for usermod and the |(uid) in lieu of name for |use of -n name |option -n Status|New |Open Severity|Affects Only Me |Affects Some People Flags| |maintainer-feedback?(dteske | |@FreeBSD.org) --- Comment #1 from Graham Perrin <grahamperrin@freebsd.org> --- <https://man.freebsd.org/cgi/man.cgi?query=pw&sektion=8&manpath=FreeBSD+14.0-CURRENT#USER_OPTIONS> > … [-n] … Required … can be a uid. … (In reply to Dennis Clarke from comment #0) I have the same interpretation of what's in the manual page. root@mowa219-gjp4-8570p-freebsd:~ # pw usermod -n 1002 -s sh pw: no such user `1002' root@mowa219-gjp4-8570p-freebsd:~ # pw usermod -s sh -n 1002 pw: no such user `1002' root@mowa219-gjp4-8570p-freebsd:~ # pw usermod -u 1002 -s sh root@mowa219-gjp4-8570p-freebsd:~ # pw usermod -s tcsh -n grahamperrin root@mowa219-gjp4-8570p-freebsd:~ # uname -KU 1400078 1400078 root@mowa219-gjp4-8570p-freebsd:~ # tail -n 2 /var/log/userlog 2023-01-28 11:43:28 [root:usermod] grahamperrin(1002):grahamperrin(1002):Graham Perrin:/home/grahamperrin:/bin/sh 2023-01-28 11:43:50 [root:usermod] grahamperrin(1002):grahamperrin(1002):Graham Perrin:/home/grahamperrin:/bin/tcsh root@mowa219-gjp4-8570p-freebsd:~ # dteske@ please are we misinterpreting? Or has there been a change in behaviour of the command? -- You are receiving this mail because: You are on the CC list for the bug.