On Fri, Sep 11, 2009 at 08:58:09PM -0700, Don Armstrong wrote:
> Because chpst is lame and cannot understand users (and groups) which
> do not exist in /etc/passwd, cereal should turn them into UIDs itself
> using getent passwd and getent group as appropriate. I'll most likely
> attach a trivial patch which does this shortly.

Hey, Don.  Thank you very much for the report.

So I remember running into this problem with chpst a while back.  I
actually submitted the bug report to chpst that resulted in the patch
to allow it to handle uids and gids directly and not look them up in
/etc/{passwd,group}.

However, as you point out, this is actually not currently supported in
cereal, strangely enough (I could have sworn it was).

However, I can see exactly where the problems are in cereal and I have
an idea for a solution.  As you suggest, for all the specified users
and groups, cereal will determine the uids and gids with getent, and
then record those in the cereal environment.  All calls to chpst will
be modified to use the {u,g}ids instead of the user and group names.
I'm pretty sure this should fix the problem.  The patchs should be
fairly straighforward so I should be able to get them in soon.

Thanks again for the report, Don.  If you have any more input on the
subject, please let us know.

jamie.

Attachment: signature.asc
Description: Digital signature

Reply via email to