From nobody Wed Feb 11 19:37:20 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 4fB7xF0vCqz6S4vF for ; Wed, 11 Feb 2026 19:37:21 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fB7xF0L5Rz4PQF for ; Wed, 11 Feb 2026 19:37:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770838641; 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=6AzY0wbzNMeYskpY69BHEYTvlJsrOI0xIYuiWHG4fYE=; b=PwQm6rdoxW3k5SixO6s0oXAUwrvR9jEbwND6bD00jQdXJFVprtrzA8uw+uxj4nGTQCxRyp fGIb62AZkNufJBAVYZp1UelKQQ8DgH2j42vpcbrXxT7CFCov3OpBS4squKrhcqfBt0AkD5 Q40r2rNUGM/We0MR+CVB1qLcgl7t3djZRiUUkqRu1rbT+hOsAUKlEWXhXKTDy35vSW2F12 1rFBSpGNNYLSyxU+EqWaGPjhA4wMhZEyV2x/KvHaBtG/1SBy3AmsfLsncCqq3AeuytLa8j GgUOwGqBs2ZHMhMGRiFtAfHtlapAhWKYwb/79iop80WrGTC+5XsZkXjFVvSLow== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770838641; a=rsa-sha256; cv=none; b=KnYhM1gdKalI27BAOXjaTSmV/scGxODaVNNRQVLDkuGoXNzUzp36dYPCHjaVhrRMJATxrZ 2hxi4CuOunQGjjNcnbFGCD2KAmTnfo8rJydGERCLf/nxiZ84DhSIap5flueuorhR7UQmy/ +ZtUQqU+J2SFf4h7qYs9mdO0ARJQQ3qfGBWxKd0pVMP7SnhWv6jMaKRP3eSiw2Ew0zT6ZI HnAj/IB3FDhTqARYfbbrX7MLoe8p6PFDTE9m0gTkDPUkaI2MTNDs+PIKX/ovDhiTZkoUN0 EIJP1BvJnjBfCmYCfN0l4vQVn4EaR7uvDxQeHTFWb5tDf+01WrTI8mswXAL3VA== 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=1770838641; 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=6AzY0wbzNMeYskpY69BHEYTvlJsrOI0xIYuiWHG4fYE=; b=lTteOh4TVsBW3dWgILqk5rF/6NyinaRWlQMbKmrEV+EVjSUtW9AnkGM+RtslwDaJRg2PvY 6GzOE5xpjXosN/fVi9IBb1ALL7POt4ghD/ZGo40GhpFcMG0TcMRLsKvFWDYsMjoUFoa/yI Wtj0qa/51ijq6uqrAZyN+X0LTxbtfj4zJ2rlV+Eic9cRg8KHUIUo4ezUGWcuLnkVscUZFq VeA5LDyMBYcTt5a6Vgxvs7qJcFT3FfUlSAEihvWwQ/Heb7FhNc42rvZ5HwI/FqOQ1rk9my gsQ6BqRebKBKhhRCZIuTKvibuqUqylg4WuLHOIFB5dkMhWC1GfEnj8YASt7cTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fB7xD6g2Jz13K6 for ; Wed, 11 Feb 2026 19:37:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 400b6 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Feb 2026 19:37:20 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Morozovsky Subject: git: e89454417b2b - main - 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/main X-Git-Reftype: branch X-Git-Commit: e89454417b2bfecce9daee10dece2f49632640d3 Auto-Submitted: auto-generated Date: Wed, 11 Feb 2026 19:37:20 +0000 Message-Id: <698cda70.400b6.5322cd10@gitrepo.freebsd.org> The branch main has been updated by marck: URL: https://cgit.FreeBSD.org/src/commit/?id=e89454417b2bfecce9daee10dece2f49632640d3 commit e89454417b2bfecce9daee10dece2f49632640d3 Author: Dmitry Morozovsky AuthorDate: 2026-02-11 19:34:00 +0000 Commit: Dmitry Morozovsky CommitDate: 2026-02-11 19:36:42 +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 --- 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