tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Chaging uid/gid at binary install
On Thu, Feb 17, 2011 at 06:05:27PM +0900, Masao Uebayashi wrote:
> On Thu, Feb 17, 2011 at 06:00:12PM +0900, OBATA Akio wrote:
> > On Thu, 17 Feb 2011 17:48:49 +0900, Masao Uebayashi
> > <uebayasi%tombi.co.jp@localhost> wrote:
> >
> > >On Wed, Feb 16, 2011 at 11:53:37PM -0800, John Nemeth wrote:
> > >>On Jul 10, 8:50am, Masao Uebayashi wrote:
> > >>}
> > >>} Can pkgsrc change uid/gid at binary install time?
> > >>
> > >> Look up SPECIAL_PERMS in the Pkgsrc guide. When you use it, an
> > >>INSTALL script is automatically generated which will set the
> > >>permissions on the specified files.
> > >>
> > >>} Is it possible to do that in theory?
> > >>
> > >> Why would it not be?
> > >
> > >IIUC, those uids/gids must be referred to by symbol (user/group
> > >name), instead of by numeric values.
> > >
> > >I'm not sure what else have to be assured, thus asking here.
> >
> > If you want to assign certain UID to the user, you can use
> > PKG_UID.foo=500
>
> And that is build time operation, right?
>
> I'm asking if something like this works:
>
> % env PKG_UID.foo=500 pkg_add foo-1.2.3.tgz
OK, this is equivalent to:
% useradd -u 500 foo
% pkg_add foo-1.2.3.tgz
(And now I realize what I want is the central DB of all pkgsrc
uids/gids so that I can add them at once.)
Home |
Main Index |
Thread Index |
Old Index