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

Answered

Comments

1 comment

  • Avatar
    Jake

    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.

Please sign in to leave a comment.