Subject: Re: userid & group id
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Charles M. Hannum <mycroft@gnu.ai.mit.edu>
List: port-i386
Date: 04/23/1997 15:17:03
Jukka Marin <jmarin@pyy.jmp.fi> writes:

> 
> > just did a little testing to see what my machines will do about this.
> > 
> > Linux: wraps around, uid of 70000 wraps to 4xxx (don't remember exactly) so
> > linux doesn't check to see if this happens.  that isn't so good.  the other
> > news is that linux does support 65535 users.
> > 
> > Solaris 2.5.1: UIDs over 65535 are just fine, UID 70000 is a vaild UID.  so 
> > Solaris does in fact use 32bit UID's.  cool.
> > 
> > just our of curiosity, anyone know what NetBSD does about this??
> 
> NetBSD whines if you try to use UID or GID greater than USHRT_MAX (see
> passwd.c in libutil).

I just removed those checks.  However...

> I don't know if these checks could simply be removed
> or if there's code than expects UID and GID to fit in a 16-bit int somewhere.

...there may be interoperability problems with systems and/or
executables for systems that have 16-bit IDs, if you use `large' IDs.