Your message dated Sat, 9 May 2009 21:47:32 +0200
with message-id <[email protected]>
and subject line Re: Bug#526749: passwd: Infinite loop when reaching 60000 users
has caused the Debian Bug report #526749,
regarding passwd: Infinite loop when reaching 60000 users
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
526749: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526749
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: passwd
Version: 1:4.1.1-6
Severity: normal
As far as I can see, when looking for the next available user id, useradd does:
- take max user id + 1
- if id > 60000 then start from 1000 and search for gaps
- repeat
So if all user ids from 1000 to 60000 are taken, useradd is in an infinite loop.
Admittedly not a common case, but I guess it needs to return an error in that
case.
-- System Information:
Debian Release: 5.0.1
APT prefers stable
APT policy: (500, 'stable'), (300, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-vserver-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages passwd depends on:
ii debianutils 2.30 Miscellaneous utilities specific t
ii libc6 2.9-8 GNU C Library: Shared libraries
ii libpam-modules 1.0.1-5+lenny1 Pluggable Authentication Modules f
ii libpam0g 1.0.1-5+lenny1 Pluggable Authentication Modules l
ii libselinux1 2.0.65-5 SELinux shared libraries
passwd recommends no packages.
passwd suggests no packages.
-- debconf information excluded
--- End Message ---
--- Begin Message ---
Version: 1:4.1.3-1
On Sun, May 03, 2009 at 08:21:03PM +0200, Sylvain Beucler wrote:
> On Sun, May 03, 2009 at 04:43:55PM +0200, Nicolas François wrote:
> >
> > With 1:4.1.3.1-1, there are no problems.
> > 0m0.570s to add the last user
> > 0m0.178s to report afterward:
> > useradd: Can't get unique UID (no more available UIDs)
> > useradd: can't create user
> >
> > With 1:4.1.1-6, I could confirm the problem:
> > 0m0.371s to add the last user
> > 9m53.508s to report afterward:
> > Can't get unique UID (no more available UIDs)
> > useradd: can't create user
> >
> > So this was not related to LDAP, but getpwent() rewinds to the
> > first entry after it returned NULL.
> >
> > As the process eventually finishes (even if 10m on a fast box is quite
> > long), I don't think it requires an update for Lenny.
> >
> > Any other opinion?
>
> This is a corner case that I triggered by searching the max users
> limit, this isn't critical, especially since it's fixed in the next
> version :)
Bug closed with the right version.
Best Regards,
--
Nekral
--- End Message ---