Skip to contentSkip to conversation

adduser question

DISCUSSION Koen Kooi 2 participants 4 messages Nov 29, 2008 – Nov 30, 2008

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

Hi,

adduser --system adds UIDs <100 to /etc/passwd, which 'update-passwd' will blow away, since they aren't in /usr/share/base-passwd/passwd.master

Is this intended behaviour, and if not, how should it get fixed?

regards,

Koen

#1 lore raw
Quoted 4 lines · Koen Kooi

adduser --system adds UIDs <100 to /etc/passwd, which 'update-passwd' will blow away, since they aren't in /usr/share/base-passwd/passwd.master

Is this intended behaviour, and if not, how should it get fixed?

Whether or not to use passwd.master and update-passwd is clearly a distribution choice. Any distro which does want to use a centrally-administered master password file should, presumably, also configure adduser with an appropriate system UID range (for example, 100-999). Depending on what implementation of adduser you are using, this might just be a case of adjusting adduser.conf or it might involve a recompile.

For distros which don't desire to use passwd.master, the right solution is simply to refrain from installing or running update-passwd. In this case it doesn't matter what UID range adduser is set up for.

p.

author
#2 lore raw
Quoted 14 lines · Phil Blundell
Quoted 4 lines · Koen Kooi

adduser --system adds UIDs<100 to /etc/passwd, which 'update-passwd' will blow away, since they aren't in /usr/share/base-passwd/passwd.master

Is this intended behaviour, and if not, how should it get fixed?

Whether or not to use passwd.master and update-passwd is clearly a distribution choice. Any distro which does want to use a centrally-administered master password file should, presumably, also configure adduser with an appropriate system UID range (for example, 100-999). Depending on what implementation of adduser you are using, this might just be a case of adjusting adduser.conf or it might involve a recompile.

Quoted 3 lines

For distros which don't desire to use passwd.master, the right solution is simply to refrain from installing or running update-passwd. In this case it doesn't matter what UID range adduser is set up for.

Thanks for the explanation, I'll have a stab at adding a proper adduser since we only have the busybox one in OE. The busybox adduser doesn't seem to support adduser.conf nor UID ranges.

regards,

Koen

author
#3 lore raw
Quoted 16 lines · Koen Kooi
Quoted 15 lines · Phil Blundell
Quoted 5 lines · Koen Kooi

adduser --system adds UIDs<100 to /etc/passwd, which 'update-passwd' will blow away, since they aren't in /usr/share/base-passwd/passwd.master

Is this intended behaviour, and if not, how should it get fixed?

Whether or not to use passwd.master and update-passwd is clearly a distribution choice. Any distro which does want to use a centrally-administered master password file should, presumably, also configure adduser with an appropriate system UID range (for example, 100-999). Depending on what implementation of adduser you are using, this might just be a case of adjusting adduser.conf or it might involve a recompile.

Quoted 7 lines
Quoted 3 lines

For distros which don't desire to use passwd.master, the right solution is simply to refrain from installing or running update-passwd. In this case it doesn't matter what UID range adduser is set up for.

Thanks for the explanation, I'll have a stab at adding a proper adduser since we only have the busybox one in OE. The busybox adduser doesn't seem to support adduser.conf nor UID ranges.

That's a no-go, the 'adduser' package is written in perl. Next stop: evaluate useradd from the 'passwd' package.

regards,

Koen