From owner-freebsd-isp Wed May 26 5:52:42 1999 Delivered-To: freebsd-isp@freebsd.org Received: from kiwi.datasys.net (kiwi.datasys.net [209.119.145.2]) by hub.freebsd.org (Postfix) with ESMTP id 03AAD150EA for ; Wed, 26 May 1999 05:52:34 -0700 (PDT) (envelope-from ayan@kiwi.datasys.net) Received: (from ayan@localhost) by kiwi.datasys.net (8.9.3/8.9.3) id IAA10076; Wed, 26 May 1999 08:52:26 -0400 (EDT) (envelope-from ayan) Date: Wed, 26 May 1999 08:52:26 -0400 (EDT) From: Ayan George Message-Id: <199905261252.IAA10076@kiwi.datasys.net> X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Steve Ames , freebsd-isp@FreeBSD.ORG Subject: Re: UID Limits Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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