How do I set Unix permissions for some files and directories?

asked 06 Sep '11, 08:28

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%


You can set Unix permissions for some files or directories using changePermissions action. You will have to include a section like the one below inside an action list section of your XML installer project file.

       <changePermissions>
          <files>*/*.sh;*/*.bin</files>
          <permissions>755</permissions>
       </changePermissions>

The permissions are expressed in octal format. Please see the chmod manual page for details on how permissions work in Unix. By default, when building an installer on a Unix platform, the installer will preserve the permissions of the files being packed, so the above will not be necessary in most cases.

link

answered 06 Sep '11, 08:29

Jake's gravatar image

Jake ♦♦
826222226235
accept rate: 98%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×8

Asked: 06 Sep '11, 08:28

Seen: 1,866 times

Last updated: 12 Sep '11, 04:17