From nobody Wed Feb 18 09:48:00 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fGBX04f4xz6RsVH for ; Wed, 18 Feb 2026 09:48:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fGBX03G83z3JGh for ; Wed, 18 Feb 2026 09:48:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771408080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BRK2Mov/P4kGCGAGxReRnIarv4yHilnSwxnxb2VTupE=; b=DGY+A4Pdx0Y/R6fTpDO38tC5kDMHqy9bR16+W65TEyYIoEtKjPUitW5CwAzlYcabYquj4K L7QZQydMIJg1okIIWQi6k6ryOfGG+kxMWOujmDoadrmQX5R0jJQxVRfX5EgF3uDRce8MR0 n6NY67+UCMQfFoqQsuztCo57dXDoGiO4QqbB/qG24d3zUhFaIsGOXchEXPLS7cODrbIJ7x I28kgY59bnQPtHk3kMzGs65BnYo7/vHaIAEoiuHt/3/JmuILi0tSW2YRxegz6xfP0gQr/b g2EzmpzLLJnG1LtxQq1b3r2zyD7XpXN18b5Wf5r0TVHPyIZ8QYHKKpkaiHDR9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771408080; a=rsa-sha256; cv=none; b=qHLFcSK2/u509C85LVUDrN8A4iycMgnFlbbKzKstoTLnMQA2k5LNBUIKORVFvmj6AvpZ9n x3oJP6Qr5Cvx0QRLYterxsxoehQR4OEUbvd673xyr9kUxexggKHhLDALkXbGzXsmk68fpx AuIqiX4tatjYGWzNgjrMi3B1eY2gqREPWtEzY9BDADFQDPTEeLPgEZGP49VROjwUVQDMrh OsWBmmK+mR6E3fdNiNCeNVIH902XKqpiVEtOju/dFMHXDhwl0vq6BjLlhncsSON7jnfPUJ 1gom8nyqobKc0OOnIh4dT8T0DIGrYleGJUED+pduSQDklKrrGivWbu6S05DD2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771408080; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BRK2Mov/P4kGCGAGxReRnIarv4yHilnSwxnxb2VTupE=; b=B78YBjF2qRcp4sDw0yQANt5Ggd0Z7M77/rhnNC2xMO2f31LBMpDqSl1E5SZkLl5MOBbxQ5 f5RBHruuWgzrZW1YIbsjde+r2wsdATKEN/6jXfl7mzb1u0NNAtIeBJVAZoWXPQSlMUvgFX d4OjXOrEBj1U6xj9oStuNOSHkZu+kD/RcXAM0XXKG9u5yiXf3uZnV8yhHvmNcCImiErhLL l35gTJRN/qzqr0yZhTqp5Qn/R11XYWEp0y9touh5oa32KyKhpNE2KQahnk/N3D0pQwQg4c oYlpKXq1MWnTIpcSwvvQph2cfZj1LnazyOdQA2uhrj7uSC8MdYwc8mRi/CAhzA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fGBX01xPCzrBh for ; Wed, 18 Feb 2026 09:48:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2106d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 18 Feb 2026 09:48:00 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Morozovsky Subject: git: 8a2d04cf8c86 - stable/14 - pw: make manual page more friendly for uid/gid search List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: marck X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 8a2d04cf8c866ff3a6f358257d7aeeefbdd84455 Auto-Submitted: auto-generated Date: Wed, 18 Feb 2026 09:48:00 +0000 Message-Id: <69958ad0.2106d.1e1f2029@gitrepo.freebsd.org> The branch stable/14 has been updated by marck: URL: https://cgit.FreeBSD.org/src/commit/?id=8a2d04cf8c866ff3a6f358257d7aeeefbdd84455 commit 8a2d04cf8c866ff3a6f358257d7aeeefbdd84455 Author: Dmitry Morozovsky AuthorDate: 2026-02-11 19:34:00 +0000 Commit: Dmitry Morozovsky CommitDate: 2026-02-18 09:47:48 +0000 pw: make manual page more friendly for uid/gid search pw.8 structure is quite different from usual manual page, especially in describing -o option usage. Specifically, these paragraphs do not contain "uid/gid" terms, and have "user id"/"group id" instead, making searching for "override duplicate safety belt" difficult. Try to simplify such searches. Also, clarify uid/gid space between 100 and 1000 as "somewhat special", as it actually is. Discussed on: russian telegram FreeBSD group Reviewed by: eugen, novel MFC after: 1 week (cherry picked from commit e89454417b2bfecce9daee10dece2f49632640d3) --- usr.sbin/pw/pw.8 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8 index f6d9ebca6308..9b75ff772c25 100644 --- a/usr.sbin/pw/pw.8 +++ b/usr.sbin/pw/pw.8 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 19, 2025 +.Dd February 11, 2026 .Dt PW 8 .Os .Sh NAME @@ -572,8 +572,8 @@ It is possible to use to create a new account that duplicates an existing user id. While this is normally considered an error and will be rejected, the .Fl o -option overrides the check for duplicates and allows the duplication of -the user id. +option overrides the check for uniqueness and allows the duplication of +the uid. This may be useful if you allow the same user to login under different contexts (different group allocations, different home directory, different shell) while providing basically the same @@ -686,6 +686,9 @@ In general, user and group ids less than 100 are reserved for use by the system, and numbers greater than 32000 may also be reserved for special purposes .Pq used by some system daemons . +Also, uids and gids between 100 and 999 are commonly used by pseudo-users +assotiated with third-party programs, and generally should be avoided for +assigning for normal users. .It Fl w Ar passmethod The .Fl w @@ -886,7 +889,7 @@ also has a option that allows allocation of an existing group id to a new group. The default action is to reject an attempt to add a group, and this option overrides the check for duplicate group ids. -There is rarely any need to duplicate a group id. +There is rarely any need to duplicate a gid. .Pp The .Cm groupmod