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 Jul 10, 12:24pm, Masao Uebayashi 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.

     You could possibly do it by number, but that would be foolhardy
since that would mean that you're dependent on the existing unknown
configuration of the system.  Using symbols means it doesn't matter
what the numeric value is on any given system.  And, if the symbols
don't exist then the INSTALL script can call {user,group}add (or
whatever is appropriate for the target OS) to create them.

}-- End of excerpt from Masao Uebayashi




Home | Main Index | Thread Index | Old Index