Date: Fri, 17 Sep 1999 08:36:42 +0000 From: Evren Yurtesen <yurtesen@ispro.net.tr> To: Christopher Michaels <ChrisMic@clientlogic.com> Cc: "'Hisako Majima'" <majima@acsu.buffalo.edu>, freebsd-questions@FreeBSD.ORG Subject: MAX GID number 2 Message-ID: <37E1FD9A.AE82A90@ispro.net.tr> References: <6C37EE640B78D2118D2F00A0C90FCB4401105C6D@site2s1>
next in thread | previous in thread | raw e-mail | index | archive | help
I have asked same kind of question to the list too, but mine was about UIDs. I got the same answer about 32bit unsigned integer but there is one limiting factor I believe! The nobody:nogroup is 65533 65534 (or something like that) so there should not be any user after nobody user is not it? For example I created a test user and tried to set the uid and gid to 1000000 and I got this reply (I used chfn) chfn: 1000000 > max uid value (65535) chfn: 1000000 > max gid value (65535) chfn: updating the database... pwd_mkdb: 1000000 > max uid value (65535) pwd_mkdb: 1000000 > max gid value (65535) chfn: done But I logged in with test user and everything was fine.. the only thing was I was not able to create files or dirs in my home directory. then I made chown test:test test and I started to be able to write there (even though before making chown the group and the owner of the dir was the test user and test group I could not try the quota since I do not have quotas enabled here... But there are some programs which does not support bigger UIDs then 65535 for sure! Evren Christopher Michaels wrote: > Hisako, > hehehe, sorry for laughing. I'm a little amused. My friend asked me the > same question a couple days ago. (I used to go to UB, and he's probably in > your class). > > The only reference I could find was in <sys/types.h> which defines t_gid as > a 32bit unsigned integer. (Which imples over 4 billion gid and uid's, > 2^32). Minus 1 of course since uid's and gid's start with 0 and not 1. > (2^0 = 1) > > ====> To the rest of the list: > > I would actually like to know the exact answer to this question myself. > Does someone else on the list know if there is another limiting factor? > > I did search the mailing list archives and didn't find much. I did find a > few messages about UID and that prodded me to look in the sources to find > what I was actually able to find. > > Thanks, > Chris > > > -----Original Message----- > > From: Hisako Majima [SMTP:majima@acsu.buffalo.edu] > > Sent: Wednesday, September 15, 1999 6:07 PM > > To: freebsd-questions@FreeBSD.ORG > > Subject: MAX GID number > > > > Hi, > > > > I have a question. > > what is the largest group id number on BSD/OS? > > Hisako Majima > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37E1FD9A.AE82A90>