Re: Creating a user and group within a rpm

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

 



Hi,

On Tue, Nov 22, 2005 at 04:47:37PM +0100, Ginkel, Jurjan van wrote:

> When I build the rpm (with rpmbuild -ba) the user and group are created,

This is the wrong way: the build system does/should not need the user
at all.  Instead of that, you can specify an explicit user/group in
the %files entries, like

	%attr(-,foo,bar) /usr/bin/yourapp

making "yourapp" owned by user "foo" and group "bar.

Then, in the %pre section make sure you create the users/groups you
need in the right way (see "rpm -q --scripts ..." for examples on
how RHEL packages do that, you may or may not want to use "system
users" (uid < 500), etc.).

-- 
--    Jos Vos <jos@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux