Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 1996 10:06:11 -0400 (EDT)
From:      John Capo <jc@irbs.com>
To:        rashid@rk.ios.com (Rashid Karimov)
Cc:        michael@memra.com, freebsd-isp@freebsd.org
Subject:   Re: newbie isp question
Message-ID:  <199608211406.KAA10066@irbs.irbs.com>
In-Reply-To: <199608202018.QAA13712@rk.ios.com> from Rashid  Karimov at "Aug 20, 96 04:18:22 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Rashid  Karimov writes:
> > 
> > On Tue, 20 Aug 1996, Swee-Chuan Khoo wrote:
> > 
> > >         1) can freebsd machine take more than 65000 user? the uid will
> > >         ran out, right?
> 
> 
> 	On my 2.2-SNAP:
> 
> 	typedef u_int32_t   uid_t;  /* ****/types.h */
> 
> 	It means you can have 4 G users

Not without a bit of work.  Add a user to your password file with
a uid >= 65536 and pwd_mkdb will whine about a bad entry.

The uid value is limited to 16 bits for compatibility with older
*nix password files and NIS.  This can be changed/fixed if backwards
compatibility is of no interest.

These code fragments are from -stable.

pwd_mkdb/pw_scan.c:94  fragment from pw_scan()

        if (id > USHRT_MAX) {
                warnx("%s > max gid value (%d)", p, USHRT_MAX);
                return (0);
        }


pwd_mkdb/pwd_mkdb.c:385  fragment from scan()

if (!pw_scan(line, pw)) {
                warnx("at line #%d", lcnt);
fmt:            errno = EFTYPE; /* XXX */
                error(pname);
        }

There may be some NIS issues that need to be addressed also.  I
didn't look at that code.


John Capo                                                   jc@irbs.com
IRBS Engineering                       FreeBSD Servers and Workstations
(954) 792-9551                 Unix/Internet Consulting - ISP Solutions



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608211406.KAA10066>