πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #554

[Bug 300896] pw_scan(3), getgrent(3), nss_tacplus and pw(8) accept uid/gid 4294967295, which is (uid_t)-1 / (gid_t)-1

#554
From: bugzilla-noreply
Date: Thu, 19 Nov 2026 13:25
28 lines
3107 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300896

--- Comment #2 from Ricardo Branco <rbranco@suse.com> ---
Update:
  - pwd_mkdb: uid or gid 4294967295 is rejected (4294967295 > max uid value
(4294967294)); 4294967294 is accepted.
  - pw groupadd -g / pw useradd -u 4294967295: Bad id '4294967295': too large;
4294967294 works (tested with pw -V on a scratch etc directory).
  - getgrent via the real /etc/group: gids 4294967295, 8589934591 and
4294967301 are no longer found by getent group, and 4294967294 still is. Before
the patch the first three were accepted and wrapped to -1, -1 andΒ 5.
  - newgrp 4294967301 used to wrap to gid 5 and prompt for that group's
password. It now says bad group name. The patch also covers newgrp(1), which I
hadn't mentioned before.

Not tested: nss_tacplus

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-300896-227-K2H75flgIY@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-300896-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!usenet.goja.nl.eu.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 300896] pw_scan(3), getgrent(3), nss_tacplus and pw(8) accept
 uid/gid 4294967295, which is (uid_t)-1 / (gid_t)-1
Date: Thu, 19 Nov 2026 13:25:54 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-300896-227-K2H75flgIY@https.bugs.freebsd.org/bugzilla/>
References: <bug-300896-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="41922"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795094754;
	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:
	 in-reply-to:in-reply-to:references:references;
	bh=Db6/0FU7ugAdog/I+QgPpG67NL4BymwmC5GD+EHCcyA=;
	b=VnMqnpvi4yJMng9eWo4ITT1eRFBIdDMYLoAb55Vq0J060lq49VnTPr9A5Avi2btEJpyPP9
	Bdb9DUI60Xfoxjsl2uEVyWmdZBa4HtgEb5OmwGEkJVYgd9w0LP+ygNWHpfXPFmJOYmnTHO
	SRi/M6H05HONCzUhC/nQSRg0bpZEO32pvvEfg5afJHwsqtJIMrtGoz2jigSYjzyiJEykiN
	JWFQrSBgW86vT8DHAAoVUp6pZG0/FuP2ecxeQIVSw1N2ty54pwDpKPzw9C32A8qkOcsSsz
	xAqRRAcuHSfdLb3q77sKE2Xq3q4ncq/axMpHMIzyZRECCsSgN9AT4ZUFNZVCyg==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-300896-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes