Hello.
sudo chmod -R u=rwx,g=rx,o=rx <confluence-install-folder>
sudo chmod -R u=rwx,g=rx,o=rx <confluence-home-folder>
I think reading that document, it looks like you are granting execute permission to all files.
When executing an application, it is sufficient for the file to have reference permissions, but why grant execution permissions?
It would be great if you could tell me why.
Thank you.
Because most of the install is executable files so they need permission to run, and so are bits of the data, and the executable permission also grants access to directories.
I understand the need for execution permissions to be granted to directories.
However, I don't understand why the -R option should grant execute permission to all files in that directory migration.
Does README.txt or server.xml need to have execute permission?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it is important to understand what that doc is about - it's giving you a quick fix for permissions after you've messed up your installation by messing with file permissions (either by running as the wrong user or making unneccesary changes to them directly)
Could you explain why you are hung up on execute permissions for non-executable files?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The reason why I insist on execute permissions is because I don't think that having unnecessary execute permissions is a good choice for security. In fact, I think it's a bad choice.
I think the basic rule is that only the file to be executed should have execute permission.
However, if the document is to fix a broken environment after installation, then I understand.
It may indeed be one way to quickly fix a broken environment.
Thank you very much.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But why?
Let's say I write a text file with "make me a sandwich" as the body, and save it as "mmas.txt" on a file system.
What is the security risk?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @nwolg
Script files, class files are present which are necessary to start the application in the installation folder require execute permission. This is the reason execute permission is provided to the installation directory
(Example: start-confluence.sh)
I found a helpful article here to know why we need execute permission to home directory
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand the need for execution permissions to be granted to directories.
However, I don't understand that the -R option requires that all files in that directory migration be granted execution rights.
Does README.txt or server.xml need to have execute permission?
Shouldn't they be the only files that need execute permission?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Note that if you use the installer, the ".sh" file will have been given execution permissions beforehand.
I don't understand why you would dare to grant execution permission to any other file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.