Filezilla Permission Denied
I just went through the process of setting up my linode, as per the 'getting started', 'securing your server' and 'hosting a web site' help files in the linode library and I have encountered a problem.
I have Unbuntu I followed the LAMP stack instructions.
I set up my name-based virtual hosts.
I logged into filezilla and successfully connected to my home directory, and also the public directory, and into each name-based virtual host directory.
When I try to upload a file from my desktop to the server. It comes up with the following error, regardless of what file I upload:
Error: /path/to/folder/index.php: open for write: permission denied
Error: File transfer failed
I am not sure if this is a chmod problem or a root access problem. This only happens when trying to upload as a user. I had no problem doing it as root - but I obviously don't want to leave root open, and change sshd setting everytime I want to upload.
I've tried changing permissions but its not changing?
I would greatly appreciate any assistance or insight into this.
2 Replies
Hey there!
Just to make sure, did you grant your limited user sudo permissions? With Ubuntu you would want to access the Linode as root then run the following command:
adduser example_user sudo
If that does not address what you are seeing, then it isn't a root permissions problem. You will want to take a look at the folder your are uploading to and check the permissions.
ls -l /path/to/folder
You can read our great guide on file permissions that I believe should explain the different options for changing folder permissions to allow you to upload. In general I would recommend using the default file permissions. I hope this helps!