rpm and flie permission

Fraser Campbell fraser-Txk5XLRqZ6CsTnJN9+BGXg at public.gmane.org
Wed Oct 29 16:36:00 UTC 2003


On Tuesday 28 October 2003 09:19, Martin Duclos wrote:
> Hi all,
> I made an rpm with a tar archive which holds the contents of my hard drive.
> Then I create the rpm with the  tar, the file permissions are kept after
> the whole tar archive has been extracted to the BUILD directory. Then rpm
> takes the files in that directory and creates a cpio archive. When I
> extract that cpio from the rpm, I noticed some files have different
> permissions than what they had in the original archive. Namely, files in
> the /etc/ssh/. Can anyone explain why?

Look at the files section of your rpm spec, have you used the defattr macro?

    %files
    %defattr(-,root,root)

IIRC rpm preserves permissions other than that.

-- 
Fraser Campbell <fraser-Txk5XLRqZ6CsTnJN9+BGXg at public.gmane.org>                 http://www.wehave.net/
Halton Hills, Ontario, Canada                             Debian GNU/Linux

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list