Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 1999 05:56:01 -0500 (EST)
From:      Steve Ames <steve@cioe.com>
To:        ayan@kiwi.datasys.net, freebsd-isp@freebsd.org, steve@cioe.com
Subject:   Re: UID Limits
Message-ID:  <199905261056.FAA13065@ns1.cioe.com>
In-Reply-To: <199905251844.OAA02733@kiwi.datasys.net>

next in thread | previous in thread | raw e-mail | index | archive | help

Yeah, I just didn't know. I fired up 'vipw' and just changed a UID
to an arbitraily large number and vipw returned thustly:

vipw: rebuilding the database...
pwd_mkdb: 1011045 > max uid value (65535)

However it took it. I can chown a file over and it appears to work
correclty. I can then remove the user from the password database
and look at the file on the system with 'ls':

-rw-r--r--   1 1011045  wheel        0 May 26 05:52 i

So the filesystem is ok with it... so other than one warning 
message in 'pwd_mkdb' it seems to be that you can have more than
65535...

Am I missing something dangerous here?

						-Steve

> 	/usr/include/sys/types.h defines uid_t as a  u_int32_t.
>
> 	/usr/include/sys/inttypes.h typedefs u_int32_t to __int32_t.
>
> 	/usr/include/machine/ansi.h typedefs __int32_t to int.
>
> 	So, uid_t is an int.
>
> 	sizeof( int ) on my 4.0-CURRENT machine is 4 bytes.
>
> 	2^32 = 4294967296
>
> 	So, I think thats how many UIDs we can have.  Is that right
> 	everyone?   If so, thats a lot of UIDs.
>
> 	-Ayan
>
>
> [ Quoted message from Steve Ames, recieved May 25,  1:24pm.]
>
> > 
> > This is probably a silly question... how many UIDs can I have on a
> > single system? UID seems to be an int type so I'd say around
> > 65000ish. Rcently, however, I heard of a Solaris upgrade that would
> > allow it to go into the millions and wondered about FreeBSD...
> > 
> > 						-Steve
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-isp" in the body of the message
>
> [ End message from Steve Ames. ]
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905261056.FAA13065>