Date: Wed, 26 May 1999 22:18:48 -0500 (EST) From: Steve Ames <steve@cioe.com> To: ayan@kiwi.datasys.net, freebsd-isp@freebsd.org, steve@cioe.com Cc: freebsd-hackers@freebsd.org Subject: Re: UID Limits Message-ID: <199905270318.WAA92247@ns1.cioe.com> In-Reply-To: <199905261252.IAA10076@kiwi.datasys.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Dunno. The IPC code uses ushrt as the type for uid... couldn't find anything else that does. Is this vestigial? I'm CC-ing this to 'freebsd-hackers' since I think we're outside the pervue of 'freebsd-isp' at this point... The question is "What is the maximum UID?". Its either a 2 or 4 byte unsigned integer. The filesystem seems to accept 4, pwd_mkdb complains about larger than 2 but lets you do it... -Steve > 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-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905270318.WAA92247>