From owner-freebsd-isp Wed May 26 20:22:16 1999 Delivered-To: freebsd-isp@freebsd.org Received: from ns1.cioe.com (ns1.cioe.com [204.120.165.37]) by hub.freebsd.org (Postfix) with ESMTP id 8CE3914D85; Wed, 26 May 1999 20:19:55 -0700 (PDT) (envelope-from steve@ns1.cioe.com) Received: (from steve@localhost) by ns1.cioe.com (8.9.2/8.9.3) id WAA92247; Wed, 26 May 1999 22:18:48 -0500 (EST) (envelope-from steve) Date: Wed, 26 May 1999 22:18:48 -0500 (EST) From: Steve Ames Message-Id: <199905270318.WAA92247@ns1.cioe.com> To: ayan@kiwi.datasys.net, freebsd-isp@freebsd.org, steve@cioe.com Subject: Re: UID Limits Cc: freebsd-hackers@freebsd.org In-Reply-To: <199905261252.IAA10076@kiwi.datasys.net> Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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-isp" in the body of the message