Date: Mon, 10 Sep 2001 12:26:59 +0200 From: Francesco Casadei <fcasadei@inwind.it> To: BOOTSTASHA@aol.com Cc: freebsd-questions@freebsd.org Subject: Re: adding a user Message-ID: <20010910122659.B1247@goku.kasby> In-Reply-To: <5b.1b6fe4cb.28cd68fb@aol.com>; from BOOTSTASHA@aol.com on Sun, Sep 09, 2001 at 08:53:15PM -0400 References: <5b.1b6fe4cb.28cd68fb@aol.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 09, 2001 at 08:53:15PM -0400, BOOTSTASHA@aol.com wrote: > I am trying to add a user who has a UID of 38445 (given by my instructor)= .=20 > The manual says that you can't have an ID over 32000. How can this be=20 > accomplished. >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >=20 > end of the original message It works on FreeBSD 4.4RC: # pw useradd user -u 38445 -g users # pw usershow user user:*:38445:1001::0:0:User &:/home/user:/bin/sh # pw userdel user # pw usershow user pw: no such user `user' =46rom sys/types.h: typedef __uint32_t u_int32_t; =2E.. typedef u_int32_t uid_t; /* user id */ =46rom i386/include/ansi.h: typedef unsigned int __uint32_t; So seems that the uid can be a number in the range 0..4294967295 (i.e. 2^32 - 1) for i386. Actually this number is limited to 2147483647: # pw useradd user -u 4294967295 -g users pwd_mkdb: 2147483647 > recommended max uid value (65535) # pw usershow user user:*:2147483647:1001::0:0:User &:/home/user:/bin/sh Francesco Casadei --=20 You can download my public key from http://digilander.iol.it/fcasadei/ or retrieve it from a keyserver (pgpkeys.mit.edu, wwwkeys.pgp.net, ...) Key fingerprint is: 1671 9A23 ACB4 520A E7EE 00B0 7EC3 375F 164E B17B --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7nJVzfsM3XxZOsXsRAjYeAKCH0ZIn/PU8nh44LKOFBq9beQ7I/ACgzL7R JyeSHPiVTfrEZS3uBTiNNa4= =4uiA -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX-- 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?20010910122659.B1247>