Re: Trying to change installed files permissions during %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Erez Zilber <erezz@xxxxxxxxxxxx> 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?
Sure - it didn't work :)

Do you install or upgrade package ?
As long as i remember when upgrade to the package with
same version post script not running.

But why you need do it in the post script ?
What wrong with just specify correct permissions for
/sbin/my_file in the package ?

Valery.

> 
> Thanks,
> -- 
> 
>
____________________________________________________________
> 
> Erez Zilber | 972-9-971-7689
> 
> Software Engineer, Storage Team
> 
> Voltaire ? _The Grid Backbone_
> 
> __
> 
> www.voltaire.com <http://www.voltaire.com/>
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
> 



 
____________________________________________________________________________________
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile.  Get started!
http://mobile.yahoo.com/services?promote=mail

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux