Subject: Re: alarm(4G)?
To: None <paul.wain@nc.com, current-users@netbsd.org>
From: Olaf Seibert <rhialto@polder.ubc.kun.nl>
List: current-users
Date: 01/08/1999 16:21:46
Paul Wain <paul.wain@nc.com> wrote:

>This one makes some sense when you think about it in terms of say NFS et al...
>
>uid=-1, gid=-1 => nobody/unknown on NFS/PCNFS
>uid=-2, gid=-2 => bad root access over NFS/PCNFS - see exports(5)
>
>Thus, the max valid value for uid/gid is (signed int) -3, or 2^31-2 (-1 is 2^32,
>-2 is 2^31-1) assuming that uid and gid are 32 bit ints

You seem to be miscounting here in several places.

-1 is 2^32 - 1
-2 is 2^32 - 2
-3 is 2^32 - 3

where "is" means bitwise pattern equality for 32-bit values.

-Olaf.
--
___ Olaf 'Rhialto' Seibert - rhialto@polder.ubc. ---- Unauthorized duplication,
\X/ .kun.nl ---- while sometimes necessary, is never as good as the real thing.