Xref: utzoo comp.unix.xenix:12283 comp.unix.questions:23447 Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!yale!mintaka!bloom-beacon!eru!luth!sunic!compuram!pgd From: pgd@bbt.se (P.Garbha) Newsgroups: comp.unix.xenix,comp.unix.questions Subject: Re: How many uids and gids are allowed in SCO Xenix? Message-ID: <1990Jul2.162752.9242@bbt.se> Date: 2 Jul 90 16:27:52 GMT References: <1990Jun28.031638.15931@cunixf.cc.columbia.edu> <106@rwing.UUCP> Organization: The Bhaktivedanta Book Trust Lines: 15 In article <106@rwing.UUCP> nanook@rwing.UUCP (Robert Dinse) writes: >In article <1990Jun28.031638.15931@cunixf.cc.columbia.edu>, chaiklin@cunixf.cc.columbia.edu (Seth Chaiklin) writes: >> >> I am runing SCO Xenix/386 2.3.1. I am curious about whether there >> is a upper limit on uids and also a upper limit on group ids? > > I've done some experimenting on that very subject and found 30,000 >to be the limit (not 32767 or some sensical boundry). In file /usr/include/sys/param.h you have the line: #define MAXUID 60000 /* max user id */ That would get me to assume the highest uid is 60000, not 30000. The setuid() call makes an explicit test for this, and returns EINVAL if greater. chown does not check anything, and you can have uid's up to 65535