Install package with alternate UID using YUM?
I figured this would have been simple, but I can't figure this out.
I would like to install Jenkins which attempts to add a user/group using 499. In my environment 499 is already in use. I would rather not fallback to using RPM.
Anyone know how to provide the UID/GID for a single package install?
Responses
James,
I would be surprised if this was simple because the way users/groups are created in rpms isn't as well defined as say.. files/directory ownership. I am not sure how a generic override for UID/GID of created users would function unless all packages followed the same convention (checking for override)?
Depending on the package, it may check to see if the user is created before attempting to create the user.. so creating the userid with the UID/GID you want before installing the RPM might be enough to resolve it.
What does "rpm -q--scripts" give up from the jenkins rpm in regards to the logic that is used to create the user?
Some RPMs will allow the use of environmental variables to influence the installation. If you're able to set appropriate, behavior-modifying environmentals in your shell, they should pass from your invoking shell, into yum and down to the RPM installation process. ...But that's only helpful for some RPMs and you'd have to pick through the vendor documentation (or the RPM itself) to find what behavior-modifiers are available. Unfortunately, even when available, they're often not well-documented.