From nobody@FreeBSD.org  Tue Jan 20 05:09:24 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 77D8216A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Jan 2004 05:09:24 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B8A3D43D49
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Jan 2004 05:09:23 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i0KD9NdL086484
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Jan 2004 05:09:23 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i0KD9Njp086483;
	Tue, 20 Jan 2004 05:09:23 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200401201309.i0KD9Njp086483@www.freebsd.org>
Date: Tue, 20 Jan 2004 05:09:23 -0800 (PST)
From: Marian Cerny <jojo@matfyz.cz>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Wrong maximal UID and GID in Handbook, section 8.2
X-Send-Pr-Version: www-2.0

>Number:         61625
>Category:       docs
>Synopsis:       Wrong maximal UID and GID in Handbook, section 8.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    simon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 20 05:10:12 PST 2004
>Closed-Date:    Tue Jan 20 08:17:44 PST 2004
>Last-Modified:  Tue Jan 20 08:17:44 PST 2004
>Originator:     Marian Cerny
>Release:        5.1R
>Organization:
>Environment:
FreeBSD mrokarik 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun  5 02:55:42 GMT 2003     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
In section 8.2 Introduction is written:
The UID is a number from 0 to 65536 used to ...
The GID is a number from 0 to 65536 used to ...

By adding a line to passwd (using vipw):
test::65536:65536::0:0:test:/:/sbin/nologin

I get this as a response:
pwd_mkdb: 65536 > recommended max uid value (65535)
pwd_mkdb: 65536 > recommended max gid value (65535)
>How-To-Repeat:
See section 8.2 Introduction of the Handbook.
>Fix:
Change 65536 to 65535.
>Release-Note:
>Audit-Trail:

From: Marc Fonvieille <blackend@FreeBSD.org>
To: Marian Cerny <jojo@matfyz.cz>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: docs/61625: Wrong maximal UID and GID in Handbook, section 8.2
Date: Tue, 20 Jan 2004 14:36:13 +0100

 On Tue, Jan 20, 2004 at 05:09:23AM -0800, Marian Cerny wrote:
 > >Description:
 > In section 8.2 Introduction is written:
 > The UID is a number from 0 to 65536 used to ...
 > The GID is a number from 0 to 65536 used to ...
 > 
 > By adding a line to passwd (using vipw):
 > test::65536:65536::0:0:test:/:/sbin/nologin
 > 
 > I get this as a response:
 > pwd_mkdb: 65536 > recommended max uid value (65535)
 > pwd_mkdb: 65536 > recommended max gid value (65535)
 
 You forgot to add the line:
 vipw: done
 
 It's just a warning cause some programs may want short IDs/GIDs.
 However maybe we should say "The UID is, by default, a number from 0
 to 65535..."
 
 Marc
Responsible-Changed-From-To: freebsd-doc->simon 
Responsible-Changed-By: simon 
Responsible-Changed-When: Tue Jan 20 06:48:48 PST 2004 
Responsible-Changed-Why:  
Grab the PR since I have committed an initial fix. 
Keep it open for a bit until a patch noteing that 
large UID/GID's are possible, have been committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61625 
State-Changed-From-To: open->closed 
State-Changed-By: simon 
State-Changed-When: Tue Jan 20 08:15:52 PST 2004 
State-Changed-Why:  
The number has been updated, and I have added a footnote about 65535 
not being the highest possible UID/GID value, but highest recommended. 
Thanks for the submission. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61625 
>Unformatted:
