This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: uid > 64k
>> Pierre A. Humblet wrote:
>>> there was again a report of uid > 64k.
>>>
>>> Why don't we patch mkpasswd to keep uids below 64k until Cygwin
>>> switches to uid32 ?
> Corinna Vinschen wrote:
>> How do you fold the ids into 64K? You never know if you're already
>> overwriting another id.
Pierre A. Humblet wrote:
> Agreed. However most passwd files have a lot fewer entries than 64k.
> Thus I was thinking that randomizing the entries above 64k into the
> range 10000->64k (to avoid local and special users) should succeed
> with high probability.
It might not be a good idea for mkpasswd to change the uids of these users
on every run. Perhaps you could use a hash function on the SID, rather than
a random function?
Max.