Need help in maintaining permissions in RPM
Marc Deop
damnshock at gmail.com
Fri Jul 1 16:31:26 UTC 2011
On Friday 01 July 2011 18:10:56 James R Maxwell wrote:
> I have a tar file that contains certain permissions, ownerships and groups.
> My question is how do I specify in the Spec file that I want to maintain the same permissions, ownerships and groups of my tarfile when the RPM is installed.
>
> I have the following line in my spec file;
>
> %defattr (-,root,root,-)
>
> However my tarfile contains files and directories of different permissions for directories/files and ownership/groups.
>
> Any help would be appreciated.
>
You can assign different permissions in the %files sections with something like
%attr(0755,webmaster,webmaster) %{VARIABLE}-%{version}/build/*
More information about the Rpm-list
mailing list