recursive - sudo chmod 755
Differences between CHMOD 755 vs 750 permissions set (4)
I have some files with 755 and i need to change them to 750, but i am not sure if this can affect some process.
I am changin JARs, XMLs, LOGs and properitees files.
Can someone explain to me the difference between these two permission set?
Thanks!
- Check that the user running PHP (
apache
?) also has permissions to change into each of the directories above the 'x' directory:images
,workspace
, etc. - Check that there are no ACLs on the 'x' directory that prevent writing by the relevant user.
- Look into SELinux if it's enabled. (I don't have anything to offer on this point but apparently it can prevent writing to directories that have been moved in from somewhere else.
0755
= User:rwx
Group:r-x
World:r-x
0750
= User:rwx
Group:r-x
World:---
(i.e. World: no access)
r = read
w = write
x = execute (traverse for directories)
Apache PHP cannot write file at any permission level
Possibly a silly question, but did you make sure you have sufficient permissions for the file you are executing, the folder you intend to write to, and also the necessary permissions for the apache file???
And I think 750 is r-x, i.e. no write permission!!
Error: Destination folder is not writable
Check if in your production system is enforced with SELinux
sestatus -v
If you have it enabled, you must add your writeable folder to the httpd_sys_rw_content_t context.
check the Allowing ReadWrite Access section in http://www.serverlab.ca/tutorials/linux/web-servers-linux/configuring-selinux-policies-for-apache-web-servers/