[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: %attr directive issues when installing an rpms
- From: Tim Mooney <mooney dogbert cc ndsu NoDak edu>
- To: "'rpm-list redhat com'" <rpm-list redhat com>
- Subject: Re: %attr directive issues when installing an rpms
- Date: Thu, 19 Jul 2001 14:42:59 -0500 (CDT)
In regard to: %attr directive issues when installing an rpms, Peter...:
>I compiled rpm-4.0, got it installed and created an rpm
>file with same permissions (without being root).
Ok.
>In my spec file, under the %files section I am using %attr macro to
>install cdp file with permissions 755 and cdp.1 file with
>permissions 544. The permissions of these files after installation
>are correct (as it shown in attached traces file), but what's up with
>the owner and group ? Why they are same ?
Because you're doing the install as yourself, and under Solaris you can't
chown the files.
>According to the "Maximum RPM" book in cases where the package builder
>can't create the files to be packaged with the correct ownership
>and permissions, the %attr macro can be used to make thinks right.
The assumption is that `root' is doing the package install, though.
If the install is done as a normal user, then assuming you have permission
to both modify the RPM databases (you do here) and drop the files into
place (you apparently do here), those parts will go ok, but the actual
chown and chgrp calls will fail, because most UNIXes won't let you do
that if you're not root.
>solardev:/home2/ptsimmer/opt/local/src/redhat/RPMS/sparc64$ rpm -ivv
>%files
>%defattr(-, root, root)
You don't have permission (as a normal user, under Solaris) to chown files
to root:root, so that part fails. The rest works. This isn't an RPM problem,
it's doing all that it can, correctly.
Tim
--
Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]