Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 1999 08:52:26 -0400 (EDT)
From:      Ayan George <ayan@kiwi.datasys.net>
To:        Steve Ames <steve@cioe.com>, freebsd-isp@FreeBSD.ORG
Subject:   Re: UID Limits
Message-ID:  <199905261252.IAA10076@kiwi.datasys.net>

next in thread | raw e-mail | index | archive | help
Yes, pwd_mkdb compares the UID with USHRT_MAX.  I wonder if there
is a macro that defines the maximum GID and UID like:

	#define UID_MAX		UINT_MAX;
	#define GID_MAX		UINT_MAX;

I couldn't find it anywhere in the source but if there is one out
there, I imagine pwd_mkdb should use it.

[ Quoted message from Steve Ames, recieved May 26,  5:56am.]

> 
> 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
>

[ 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?199905261252.IAA10076>