[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Trying to change installed files permissions during %post
- From: Erez Zilber <erezz voltaire com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: Trying to change installed files permissions during %post
- Date: Tue, 23 Jan 2007 09:26:12 +0200
Murilo Opsfelder Araújo wrote:
> On 1/22/07, Erez Zilber <erezz voltaire com> wrote:
>> Hi,
>>
>> In my spec file, in the %post section, I'm trying to change the
>> permissions of some of the files that the rpm installs:
>>
>> %post
>>
>> chmod +x /sbin/my_file
>>
>> However, after I install the binary rpm, /sbin/my_file is not
>> executable. Am I doing something wrong?
>>
>> Thanks,
>
> Hi,
>
> You must set up the permissions on the %files section. Like this:
>
> %files
> %attr(0755,root,root) /sbin/my_file
>
> Best regards.
>
Thanks - all answers were very helpful.
--
____________________________________________________________
Erez Zilber | 972-9-971-7689
Software Engineer, Storage Team
Voltaire – _The Grid Backbone_
__
www.voltaire.com <http://www.voltaire.com/>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]