Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Nov 1999 08:43:36 +0200 (EET)
From:      Evren Yurtesen <yurtesen@ispro.net.tr>
To:        Vadim Belman <voland@plab.ku.dk>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: pwd_mkdb max uid warning.
Message-ID:  <Pine.BSF.4.05.9911180842230.75733-100000@finland.ispro.net.tr>
In-Reply-To: <85iu312bp7.fsf@dialup90.apex.dp.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
You are right I guess...
last time I tried to generate a user with ID of 10000
If I remember right...
I have found out that the quotas are not working for that
user and there are some other problems. (I do not remember
very clearly)

+---------------------------------------------------------+
| Name       : Evren Yurtesen - yurtesen@ispro.net.tr     |
| Job Title  : Technical Consultant & System Administrator|
| S-Mail     : Talikkokatu 6B 26, Turku 20540, Finland    |
| Work Tel.  : +90-232-2463992                            |
| Mobile Tel.: +358-40-5073940                            |
+---------------------------------------------------------+

On 17 Nov 1999, Vadim Belman wrote:

> 	Recently I answered a question concerning maximum valid UID
> 	value. I had created a new user with UID 1000000 using pw
> 	utility. Everything went smoothly, but pwd_mkdb warned about
> 	creation of UID bigger than 65535. I found this piece of code in
> 	/usr/src/usr.sbin/pwd_mkdb/pw_scan.c:
> 
>         if (id > USHRT_MAX) {
>                 warnx("%s > max uid value (%d)", p, USHRT_MAX);
>                 /*return (0);*/ /* THIS SHOULD NOT BE FATAL! */
>         }
> 
> 	I see only one reason for this: for keeping compatibility with old
> 	utilities which don't use uid_t but relay on unsigned short
> 	values. Am I right? Is there any other reason? Or, perhaps, this
> 	code is obsolete and may be removed without harm?
> -- 
>     /Voland			Vadim Belman
> 				E-mail: voland@plab.ku.dk
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9911180842230.75733-100000>