Re: How to pass runtime argument on RPM installation?

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

 



I agree with you but however the app user is created in a external system like kerberos which I get at runtime only.. 

Any suggestions would be appreciated

Regards, MK

On Wed, 1 Jul 2020, 4:17 pm Manuel Wolfshant, <wolfy@xxxxxxxxxxxxxxxxxx> wrote:
On 7/1/20 1:38 PM, Mohankumar S wrote:
That's right but am checking for the possibilities to install and do a chown on the installed files as there is a requirement for me to do so.. 

you cannot pass arguments to rpm packages at install time because rpm as a tool was designed for unattended installs.

you can however create the user in %pre and make that user owner using %attr in the %files section . That's the normal approach used by all packages that require a specific user



Regards, MK

On Wed, 1 Jul 2020, 4:01 pm Dominik 'Rathann' Mierzejewski, <dominik@xxxxxxxxxxxxxx> wrote:
On Wednesday, 01 July 2020 at 12:23, Mohankumar S wrote:
> Hi Domnic, Thanks for the response,
> The use case here is, there is a customized rpm package which will be
> installed in different servers owned by different applications.
> Say like if am installing the rpm on a server while put the files in /opt,
> I want the root installed files to be owned by that application user ID.

That's the whole issue. Why do you think you need that? Application
binaries and static data should not normally be owned by anything other
than root.

Regards,
Dominik
--
Fedora   https://getfedora.org  |  RPM Fusion  http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux