On Thu, 27 Aug 2009 16:43:34 -0400
Brynet <bry...@gmail.com> wrote:

> Robert wrote:
> > Number of local  user accounts is liminted by the available user
> > id's. Since that's a 16 bit limit and if you stick to the 'from uid
> > 1000 up' rule, that'd leave you with 64536 possible accounts.
> 
> Hi,
> 
> Thats wrong, uid_t and gid_t are 32-bit unsigned integers on at least
> i386.
> 
> ./sys/_types.h:typedef  __uint32_t      __uid_t;        /* user id *
> ./sys/types.h:typedef   __uid_t         uid_t;          /* user id */
> ./sys/_types.h:typedef  __uint32_t      __gid_t;        /* group id */
> ./sys/types.h:typedef   __gid_t         gid_t;          /* group id */
> 
> SUS only says that uid_t and gid_t must be "integer types", without
> referring to signedness or size.
> 
> Hope that helps.
> 
> -Brynet
> 
> -Brynet

And here i was thinking about being limited to 256*256 uid's.
uid 123456 actually works.
The ugly, now i have to find out where i got the 16bit constraint from.

Thanks! :)

Atleast it still should take care of 'thoundsands of accounts'. ;)

- Robert

Reply via email to