From owner-freebsd-questions Mon Sep 10 3:28:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailrelay2.inwind.it (mailrelay2.inwind.it [212.141.54.102]) by hub.freebsd.org (Postfix) with ESMTP id 54DF537B439 for ; Mon, 10 Sep 2001 03:28:02 -0700 (PDT) Received: from [62.98.216.155] (62.98.216.155) by mailrelay2.inwind.it (5.5.029) id 3B95259E001BEF5E for freebsd-questions@freebsd.org; Mon, 10 Sep 2001 12:28:01 +0200 Received: (qmail 1401 invoked by uid 1000); 10 Sep 2001 10:26:59 -0000 Date: Mon, 10 Sep 2001 12:26:59 +0200 From: Francesco Casadei To: BOOTSTASHA@aol.com Cc: freebsd-questions@freebsd.org Subject: Re: adding a user Message-ID: <20010910122659.B1247@goku.kasby> Mail-Followup-To: BOOTSTASHA@aol.com, freebsd-questions@freebsd.org References: <5b.1b6fe4cb.28cd68fb@aol.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5b.1b6fe4cb.28cd68fb@aol.com>; from BOOTSTASHA@aol.com on Sun, Sep 09, 2001 at 08:53:15PM -0400 X-Operating-System: FreeBSD 4.4-RC i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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