Bug 61625

Summary: Wrong maximal UID and GID in Handbook, section 8.2
Product: Documentation Reporter: Marian Cerny <jojo>
Component: Books & ArticlesAssignee: Simon L. B. Nielsen <simon>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Marian Cerny 2004-01-20 13:10:12 UTC
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)

Fix: 

Change 65536 to 65535.
How-To-Repeat: See section 8.2 Introduction of the Handbook.
Comment 1 Marc Fonvieille freebsd_committer freebsd_triage 2004-01-20 13:36:13 UTC
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
Comment 2 Simon L. B. Nielsen freebsd_committer freebsd_triage 2004-01-20 14:48:48 UTC
Responsible Changed
From-To: freebsd-doc->simon

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.
Comment 3 Simon L. B. Nielsen freebsd_committer freebsd_triage 2004-01-20 16:15:52 UTC
State Changed
From-To: open->closed

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.