Summary: | pw(8) usermod: numeric ID (uid) in lieu of name for option -n | ||
---|---|---|---|
Product: | Documentation | Reporter: | Dennis Clarke <dclarke> |
Component: | Manual Pages | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Open --- | ||
Severity: | Affects Some People | CC: | doc, dteske, pat |
Priority: | --- | Flags: | grahamperrin:
maintainer-feedback?
(dteske) |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
URL: | https://cgit.freebsd.org/src/tree/usr.sbin/pw/ | ||
See Also: | https://reviews.freebsd.org/D2700 |
Description
Dennis Clarke
2023-01-28 01:32:45 UTC
<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? |