I am new to file/folder permissions in Unix and have a problem. I have a directory with all the files and folders permissions set to 0755. When I try to upload those files to my server and try to edit, delete, or rename them, permission is denied.

After some research online I found that there is a solution to change all the files and folders to 0777 so that everyone can read/write but, of course, I don't want to do that because that may cause security issues.

Please note that I don't have SSH access to the host. What I'm doing right now is changing the file permission on my local Linux machine and uploading the modified files to the remote server.

What can I do to solve this problem?

  • do you have access if you upload a file with 0777? Are you using ftp? – Paul Jun 16 '15 at 21:00

How are you copying the files over to the remote server ?

If you are using rsync then use the -a switch to preserve it. cp -p would preserve the file permissions.

You can read about these commands here :


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.