All of lore.kernel.org
 help / color / mirror / Atom feed
* adduser question
@ 2008-11-29 17:08 Koen Kooi
  2008-11-29 18:08 ` Phil Blundell
  0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2008-11-29 17:08 UTC (permalink / raw)
  To: openembedded-devel

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adduser question
  2008-11-29 17:08 adduser question Koen Kooi
@ 2008-11-29 18:08 ` Phil Blundell
  2008-11-29 18:27   ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Blundell @ 2008-11-29 18:08 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel

On Sat, 2008-11-29 at 18:08 +0100, Koen Kooi wrote:
> 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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adduser question
  2008-11-29 18:08 ` Phil Blundell
@ 2008-11-29 18:27   ` Koen Kooi
  2008-11-30  9:27     ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2008-11-29 18:27 UTC (permalink / raw)
  To: openembedded-devel

On 29-11-08 19:08, Phil Blundell wrote:
> On Sat, 2008-11-29 at 18:08 +0100, Koen Kooi wrote:
>> 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.

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: adduser question
  2008-11-29 18:27   ` Koen Kooi
@ 2008-11-30  9:27     ` Koen Kooi
  0 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2008-11-30  9:27 UTC (permalink / raw)
  To: openembedded-devel

On 29-11-08 19:27, Koen Kooi wrote:
> On 29-11-08 19:08, Phil Blundell wrote:
>> On Sat, 2008-11-29 at 18:08 +0100, Koen Kooi wrote:
>>> 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.
>
> 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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-11-30  9:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-29 17:08 adduser question Koen Kooi
2008-11-29 18:08 ` Phil Blundell
2008-11-29 18:27   ` Koen Kooi
2008-11-30  9:27     ` Koen Kooi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.