[Adduser-devel] Bug#482069: adduser: If uid 999 exists, next system uid will be between 0-99

Durk Strooisma durk at kern.nl
Wed May 21 08:28:36 UTC 2008

> if first_avail_uid returns -1 (which is indicating that in the range
> FIRST_SYS_UID and LAST_SYS_UID there was no free uid), adduser will stop.
> I don't see any overflow which causes adduser to start at uid 0 again.
> Please correct me if I'm wrong, but I don't get the problem.

Hi, I didn't check the code, but while trying to reproduce my described
problem, I couldn't and saw that I made a terrible mistake. I invoked
useradd in stead of adduser.. :-( Adduser IS working the way you would
Sorry for the noise. Bug can be closed.

More information about the Adduser-devel mailing list