[PATCH] adduser addgroup use LAST_ID (Was: adduser remove some code)

Harald Becker ralda at gmx.de
Sun Dec 22 11:05:04 UTC 2013


Hi Tito !

>Wew could also add a config option as we already have
>
> (100) First valid system uid or gid for adduser and addgroup
> (999) Last valid system uid or gid for adduser and addgroup
>+ (60000) Last valid uid for adduser and addgroup

Would be better to have separate system UID and GID values as
user and group id ranges may vary. I know this increases the
number of config options, but having only single system values
for user and group may not match everybody need. Think of system
group id range of 50..99, using group 100 and higher for user
groups, where user numbers need a bigger space and use 100..999
as system range and 1000 onwards for normal users.

... but assigning IDs to user and groups is a philosophical
problem, which could be done in so many ways. As far as I know
there exist no regulatory (yet) on how user and group values are
assigned. It's the admins property to assign appropriate values

>The attached patch changes adduser.c, addgroup.c
>and Config.src to set and use CONFIG_LAST_ID.

Looks fine on a quick look, but didn't do deep analyze.


--
Harald


More information about the busybox mailing list