Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2023 12:30:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 269193] pw(8) usermod: numeric ID (uid) in lieu of name for option -n
Message-ID:  <bug-269193-227-0uAyrvnP53@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-269193-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-269193-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269193

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=3Dpw&sektion=3D8&manpath=3DFreeB=
SD+14.0-CURRENT#USER_OPTIONS>

> =E2=80=A6 [-n] =E2=80=A6 Required =E2=80=A6 can be a uid. =E2=80=A6

(In reply to Dennis Clarke from comment #0)

I have the same interpretation of what's in the manual page.=20

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):Gr=
aham
Perrin:/home/grahamperrin:/bin/sh
2023-01-28 11:43:50 [root:usermod] grahamperrin(1002):grahamperrin(1002):Gr=
aham
Perrin:/home/grahamperrin:/bin/tcsh
root@mowa219-gjp4-8570p-freebsd:~ #=20


dteske@ please are we misinterpreting? Or has there been a change in behavi=
our
of the command?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269193-227-0uAyrvnP53>