From nobody Wed Feb 18 09:46:51 2026 X-Original-To: dev-commits-src-branches@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 4fGBVg6HxKz6Rs9w for ; Wed, 18 Feb 2026 09:46:51 +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 4fGBVg4Ch7z3J6S for ; Wed, 18 Feb 2026 09:46:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771408011; 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=eUpnEZ1JV5S8uVj+jFFUiypDuO4IpnyxewMwC1GHTFrCcJLwpJzpOquAy/KWrmZ8QXveiu A+9/5eEk7U0rZfah/lXWU8bOHnGja9Mq+JukGZJ2SfvNCi2nbDSYg+ESOMBC5LtK4uc0Vd zah8qdfc0Gp0+fOZMeLd/Wzrw6+voRhY2OJpFrkXLe+bNkdVslYgZN9iNysbo+RgAAcYJw I0B4AtWuPhniw1wjtz0ih7tyaDLOD9hAlyCWbka4PjvqC2jjsIThR05NJimGaNOThXDP7O tBJUNC9jSc+A1SjX05XcQuq/9FruQarIf2AJGt6EFa7KLZ41Y48AyoTAydl35Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771408011; a=rsa-sha256; cv=none; b=r0nD9AgVDwwh1mPjqSAuXnsOFfNga3UTrh9ue8wLIg4JywWYHGTWVUPIhVrMmzKYqWm4zc hvEgUNXfarLsTEPmHWpli7HX9oulZGiGSk7cxmOskwHwjKm2hbziughaz2zE3jg6SspXLO IpyB8OVx19wnGyzkZ0SFIg+eqDgoMBve11qvhSF7qYbO9LNOyVaDhhqxpB0cl9nPADz3No kOS8Nazdx9dRnPEqx+/XmoVZAG/qf3esq+Et/PfVSBSDee+sV1ZojOBKx2GYkZllvQuDfv IeDdjclD5K9NBI02VcvR2oFDE3YCVI+c1hRfho0vKDXHK6xg6MERZwODHGS5cw== 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=1771408011; 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=BKC6mMLJISebBe72sI8XGfKbvD13czrhxeODhT2SRu+EDNyOPA29RQroauVLo0YeLaEbM0 KkjrYMRM8ZFQUGB2e5GoX3LQL0Ei9rCK5uc1EDjrgzaFFrtOGdIkQ/+3dCHvHF9+5v8ETm X5QPOLlqFsJHoG/fnxZ+jteFjBeT/RYwMeRgTLyUqdVQpV7QoAka8LJwdYim1kr32QxIxX lvp38cMe9uV4j8iLmGYEkRJwROy5aK+TZ10hXLgzj9wipZQmkvfDuSp2BJ8XEaKJUrgoVh 02iqmpSCJf9jotnR4x5Ez1uY+iBhiFikJlfqhzKImqu1j1Ch3eQTlkDiUX+DVg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fGBVg3bPdzrNC for ; Wed, 18 Feb 2026 09:46:51 +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: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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