[Bug 15616] New: adduser shows uid '200' in use when the gid is in use

bugzilla at busybox.net bugzilla at busybox.net
Fri Jun 2 08:34:22 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15616

            Bug ID: 15616
           Summary: adduser shows uid '200' in use when the gid is in use
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: sven.kirmess at kzone.ch
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

adduser incorrectly reports the uid 200 to be already in use - the actual
problem is that it tries to create a group with gid 200 and the gid is already
in use.
The error message should read "adduser: gid '200' in use" or maybe even
"adduser: gid '200' in use by group nofiles" to make it clear what the problem
is.

$ docker run --rm -it alpine sh
/ # adduser -u 200 test
adduser: uid '200' in use
/ # grep 200 /etc/passwd /etc/group
/etc/group:nofiles:x:200:
/ # adduser -u 200 -G nofiles -D test


https://gitlab.alpinelinux.org/alpine/aports/-/issues/14954

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list