Bug 9811 - adduser doesn't support UID/GID above 256000
Summary: adduser doesn't support UID/GID above 256000
Status: RESOLVED WORKSFORME
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-14 21:37 UTC by Christian Höltje
Modified: 2017-04-18 15:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Höltje 2017-04-14 21:37:32 UTC
The adduser command doesn't support UID/GID above 256000

$ docker run --rm -it alpine adduser joecool -u 500000
adduser: number 500000 is not in 0..256000 range

I expect it to handle the maximum of an 2,147,483.646 (unsigned int) on 64 bit platforms (which the above alpine image is).
Comment 1 Denys Vlasenko 2017-04-18 15:06:35 UTC
Increase CONFIG_LAST_ID in .your .config.
Testing with CONFIG_LAST_ID=1999999999:

# ./busybox adduser joecool -u 999999999
Changing password for user joecool.
New password: 
BAD PASSWORD: The password is a palindrome
Retype new password: 
passwd: all authentication tokens updated successfully.