Hi Marc,

Thanks for the detailed and fast feedback and for the opportunity to work on 
this.

The persistent counter approach makes sense to me, and I agree that the UID 
pool mechanism is not the right abstraction for this. I’ll look into the 
existing state file implementation and how separate counters for regular and 
system UIDs could fit into it.

I’ll also investigate the current locking behavior of adduser and make sure 
concurrent invocations cannot result in the same UID being allocated.

For existing installations, I’ll look at initializing the counters by scanning 
from the configured FIRST_*_UID range until the first available UID is found, 
as you suggested.

Thanks again. I’ll get started on it.

Greetings,
Juan Muñoz
Debian: Juaesm

Reply via email to