From nobody Wed Feb 18 09:46:51 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 4fGBVm66L8z6RrXM for ; Wed, 18 Feb 2026 09:46:56 +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 4fGBVm48FGz3JBv for ; Wed, 18 Feb 2026 09:46:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771408016; 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=8BAZAiAQbsG6q/k49b4VN4P1IfaXIdpW10TKc/Qp31A=; b=vkGHDYABlhwph1sI6EnRnsWvuGmSfkCUiWy3E9Aoo9jWMyPFcnfswxBX90wvQFLk3Qg5j7 sjvUVnPUYAeICGu0TanDEAv9N9z3FubiJh9bDifIySmRykrq11zi0jSXfKZ5+N8nk1CAoe DPkziDI3Kh1nRi4V2OTh2W9WVw1a9W44NyGxH3SHQSmG64h0TCTVka6PDE3j5oES0E4z+a F4sjWq34PyBPZB4wevqrOWMVc7wKpGv4wzV7XX+BLN/+3i8wyZICrQrQsPjBM4oMpiY9yt 1WUsjtJ24sBnIjvmebDFrbaGziBSqLrD9AhmsADVuDT9OX7HOY5F744leRyljQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771408016; a=rsa-sha256; cv=none; b=dlDzXrifaQ15cficF45lGNOs388UUXrJGUWvoT6KfAvwvPp56elZ0B+XlfRAKoULRdkeb+ 6zoysUHtopTw6b+IHPvTHFqEB90/iaX74aMq5dFD6eVnsoQqoaVvCLgH+DSgpKNbP0X7tB 5fbYArSyXY43U8B0VqGH90zsK6F7ilf+PGdIK23IJC3FHwkbPwXGtTnqP7P7CbOuqGJUm/ qIUVU9fovjBOPRjstvgURClGUAMxXnOIEUp3MteGuveCT3hz3It6BgTJhpkFs+rztVNn+A mDbKvuZse9PAhrE1V2MrnFYZwTtEaBMSVIMnJH6jhcN6HkynpkDXpQvuZDtbgA== 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=1771408016; 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=8BAZAiAQbsG6q/k49b4VN4P1IfaXIdpW10TKc/Qp31A=; b=N+onEde0ObYEuMRHqdZrAbS4x5YqBVzK5Bfcvh4bpbC3iV6QHr1WIVlLxx1y9oRS6MrS3D TKfwLpaX92bz8gaSx8jRYmZi0Kqyam5Hoob6B/sXnqSCdxIk5Dcz5kmSNVZmSFLmZaPEBG mxxpspgLkzf0PPPx7fzHiWVxMvRT7mvLE09+C9Fc9yUAJALP3xAVdzfM0HHP+N9tOiXH8y mjPfo1aRNb304tOKBxIii1rFnBkrufnQmhIr4rLYGz8ewdN6gHrMqCwEZn+AjDKISo9fPv q2Nr0h8mDA+kHZQUfDaZUwI8vVH+Avn3qLC5gxxZZEl6hGPunUaq6urxHsHXYA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fGBVm3dZqzrQm for ; Wed, 18 Feb 2026 09:46:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21317 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 18 Feb 2026 09:46:51 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Morozovsky Subject: git: 05305aceebab - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 05305aceebabbf304f1fec312f2942f10535fe10 Auto-Submitted: auto-generated Date: Wed, 18 Feb 2026 09:46:51 +0000 Message-Id: <69958a8b.21317.545ef0a8@gitrepo.freebsd.org> The branch stable/15 has been updated by marck: URL: https://cgit.FreeBSD.org/src/commit/?id=05305aceebabbf304f1fec312f2942f10535fe10 commit 05305aceebabbf304f1fec312f2942f10535fe10 Author: Dmitry Morozovsky AuthorDate: 2026-02-11 19:34:00 +0000 Commit: Dmitry Morozovsky CommitDate: 2026-02-18 09:44:50 +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