Re: /etc/passwd thoughts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/12/2009 10:12 PM, David Dillow wrote:
On Fri, 2009-06-12 at 23:21 +0200, Seewer Philippe wrote:
Actually 95nfs doesn't create its own entry. The part is commented out.

Right; I'm torn on this. We want to support both portmap and rpcbind,
and at least rpcbind needs a user to run as -- it won't run without it.
I don't know what portmap wants.

I have it copying the passwd file as that seemed to be the most
distro-agnostic way I could do it.

I see a few options --
1) Copy /etc/passwd from the distro into the initrd; exposes user names,
but passwords should be in /etc/shadow and hence not copied.
2) Make our own users for rpcbind (and portmap if different) and just
use that. rpcbind gets killed before we transition to root, so the uid
doesn't have to match up.

It seems the correct way would be:

If rpcbind, then write only the necessary user into the initrd's /etc/passwd. Do not copy the generating system's /etc/passwd.

Any objections?

Warren Togami
wtogami@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux