Set Installed File Permissions for Linux

From Qt Wiki
Revision as of 17:43, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Here is a guide to set permissions for installed files on linux.

In your .pro file, change QMAKE_INSTALL_FILE and QMAKE_INSTALL_PROGRAM to the following:

where:

  • <permissions octals> is the standard linux permissions octals (ex: 755).
  • <owner> is the owner of the file. This parameter can be ommited.
  • <group> is the group owner of the file. This parameter can also be ommited.

Here is an example implementation. In this example, I install my binary in the folder /opt/myApp and give it permissions 6755 with root as the owner and root as the group owner.

Additional “install” parameters can be found here: http://linux.about.com/library/cmd/blcmdl1_install.htm

Categories: