A best-practice question
Eran Ben Natan
eranb at celltick.com
Mon Nov 26 10:18:27 UTC 2012
Thanks a lot, Panu. That makes sense.
Eran.
-----Original Message-----
From: rpm-list-bounces at lists.rpm.org
[mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of Panu Matilainen
Sent: Monday, November 26, 2012 11:21 AM
To: rpm-list at lists.rpm.org
Subject: Re: A best-practice question
On 11/26/2012 08:55 AM, Eran Ben Natan wrote:
> Hello,
>
>
>
> From your experience, is it better to set files owner and mode in the
> install part, using the install command, or in the files part with
> %attr?
Like Valery already pointed out, rpmbuild should never ever be executed
as root, which means you simply cannot set file ownership during
%install. File ownership should always be set in %files with
%defattr/%attr.
Setting the file mode is up to you. Often its suffieciently taken care
of with by "make install" during %install so that only eg
"%defattr(root,root,-)" is needed, and if further tweaking is needed it
can be done from either %install or %files via %defattr/%attr.
- Panu -
_______________________________________________
Rpm-list mailing list
Rpm-list at lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-list
This mail was received via Mail-SeCure System.
More information about the Rpm-list
mailing list