Skip to contentSkip to conversation

busybox: configure system user id to range from 100 to 999

PATCH New [email protected] 1 participant 2 messages Aug 30, 2013

lore
Share & tools
lore
#0 lore raw

cover busybox: configure system user id to range from 100 to 999

From: Chen Qi <[email protected]>

The following changes since commit 44c3f72684c5c920ce8af1da54a2268047342589:

lib/oeqa/runtime: smart: add checks for smart output (2013-08-26 16:29:18 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/busybox-system-user
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/busybox-system-user

Chen Qi (1):
busybox: configure system user id to range from 100 to 999

 meta/recipes-core/busybox/busybox-1.21.1/defconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 busybox: configure system user id to range from 100 to 999

From: Chen Qi <[email protected]>

Previously, the range was 0 to 0. This made it impossible to use busybox's adduser utility to add a system user. The following error would appear.

adduser: no uids left

This patch fixes this problem by giving it a reasonable range.

---
 meta/recipes-core/busybox/busybox-1.21.1/defconfig |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/busybox/busybox-1.21.1/defconfig +2 -2
index bdfdadf..5233c93 100644
@@ -457,8 +457,8 @@ CONFIG_USE_BB_CRYPT=y
 # CONFIG_ADDUSER is not set
 # CONFIG_FEATURE_ADDUSER_LONG_OPTIONS is not set
 # CONFIG_FEATURE_CHECK_NAMES is not set
-CONFIG_FIRST_SYSTEM_ID=0
-CONFIG_LAST_SYSTEM_ID=0
+CONFIG_FIRST_SYSTEM_ID=100
+CONFIG_LAST_SYSTEM_ID=999
 # CONFIG_ADDGROUP is not set
 # CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS is not set
 # CONFIG_FEATURE_ADDUSER_TO_GROUP is not set
Signature · 1 line
1.7.9.5