[fpc-pascal] Re: Issue with deploying linux application in /opt directory
Bernd
prof7bit at gmail.com
Tue Sep 4 12:21:08 CEST 2012
2012/9/4 Mark Morgan Lloyd <markMLl.fpc-pascal at telemetry.co.uk>:
> What files were changed by the chown -R operation? In other words, compare
> before and after.
One more thing comes to mind: It is necessary to set the x bit for
folders. If you create the directory tree and then recursively chown
and chmod all files and folders then it must NOT remove the x bits for
all folders because for folders the this bit means "directory is
browseable".
the installer should do:
* chown root:root the folder and everything inside it
* chmod 0755 the folder and all sub-folders
* chmod 0644 all files inside these folders
* chmod 0755 your executable file
And then the application itself must be written in such a way that it
can run without problems under these circumstances which should be
easily possible (if its not an admin tool itself like for example
mount that needs special privileges anyways to do anything useful).
More information about the fpc-pascal
mailing list