[opensuse-packaging] Owner and group ignored?
![](https://seccdn.libravatar.org/avatar/67cbf16965773b6425a43b3c2db920c6.jpg?s=120&d=mm&r=g)
I have a spec file with: %files -f /tmp/datallegro-base-files-for-rpm ...and in /tmp/datallegro-base-files-for-rpm I have things like (for example) : %attr(664,ingres,ingres) /datallegro/CHANGES %dir %attr(775,ingres,ingres) /datallegro/bin %attr(775,ingres,ingres) /datallegro/bin/GetSOVersion %attr(4755,root,root) /datallegro/bin/PriorityServer %attr(775,ingres,ingres) /datallegro/bin/da_top ...but if I rpm2cpio the resulting rpm and pipe that into cpio -icvt, 100% of the files are under user root, group root. Also, the files in the $RPM_BUILD_ROOT are owned mostly by ingres - I can see that with ls. We need to package the rpm -as- root, but we don't want all the files to be owned /by/ root on the target system. Am I doing something wrong? Why are all these files coming up owned by root instead of by ingres? --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/67cbf16965773b6425a43b3c2db920c6.jpg?s=120&d=mm&r=g)
It looks like "rpm2cpio | cpio -icvt" isn't a good test for users and groups, because my rpm's were coming up with lots of files owned by root, but when I actually apply the rpm's, the files are coming up with the correct owners now. That rpm2cpio test seems to work OK for permissions bits and file inclusion/exclusion though. Dan Stromberg wrote:
I have a spec file with:
%files -f /tmp/datallegro-base-files-for-rpm
...and in /tmp/datallegro-base-files-for-rpm I have things like (for example) :
%attr(664,ingres,ingres) /datallegro/CHANGES %dir %attr(775,ingres,ingres) /datallegro/bin %attr(775,ingres,ingres) /datallegro/bin/GetSOVersion %attr(4755,root,root) /datallegro/bin/PriorityServer %attr(775,ingres,ingres) /datallegro/bin/da_top
...but if I rpm2cpio the resulting rpm and pipe that into cpio -icvt, 100% of the files are under user root, group root. Also, the files in the $RPM_BUILD_ROOT are owned mostly by ingres - I can see that with ls.
We need to package the rpm -as- root, but we don't want all the files to be owned /by/ root on the target system.
Am I doing something wrong? Why are all these files coming up owned by root instead of by ingres?
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/52505bac1e0f5b3052ed89f63d10292d.jpg?s=120&d=mm&r=g)
On 2008-01-07 17:41:23 -0800, Dan Stromberg wrote:
It looks like "rpm2cpio | cpio -icvt" isn't a good test for users and groups, because my rpm's were coming up with lots of files owned by root, but when I actually apply the rpm's, the files are coming up with the correct owners now.
That rpm2cpio test seems to work OK for permissions bits and file inclusion/exclusion though.
rpm -qplv ingres.rpm darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
![](https://seccdn.libravatar.org/avatar/67cbf16965773b6425a43b3c2db920c6.jpg?s=120&d=mm&r=g)
Marcus Rueckert wrote:
On 2008-01-07 17:41:23 -0800, Dan Stromberg wrote:
It looks like "rpm2cpio | cpio -icvt" isn't a good test for users and groups, because my rpm's were coming up with lots of files owned by root, but when I actually apply the rpm's, the files are coming up with the correct owners now.
That rpm2cpio test seems to work OK for permissions bits and file inclusion/exclusion though.
rpm -qplv ingres.rpm
darix
Thanks - that'll be really useful. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Dan Stromberg
-
Marcus Rueckert