
So in today’s Weekend WordPress Project we’ll look at file and folder permissions in detail, and how to change them to improve your site’s security. The WordPress Codex has some information on WordPress file permissions, but it doesn’t go into a whole lot of detail so it can be tough to follow. Setting your file permissions correctly may not save you from all attacks, but it will help make your site a bit more secure, making it a great addition to your current security measures. If your files don’t have the best possible permissions in place, it’s easier for hackers to intrude on your files and your site. This is important, as the Codex explains, because WordPress may need access to write to files in your wp-content directory to enable certain functions. Then I tried the Ubuntu correction (since it was an Ubuntu instance), and that did work.File permissions specify who and what can read, write, modify, and access them. Since I was working with an Amazon instance I tried the third approach first, which didn’t work.

Sudo chown -R ec2-user:ec2-user /var/www/html Sudo chown -R ubuntu:ubuntu /var/www/html Sudo chown -R centos:centos /var/www/html Here are the fixes from the Stack Overflow article: The Stack Overflow example was to a web folder for me, it was a video folder off the root.

With each, you have to point to the folder you’re giving permissions to, which will also give permissions to subfolders within that folder.

The article proposes the following three OS-specific fixes to run in Terminal. Now it seems that many readers may encounter the same issue so I wanted to address it here.Ī quick Google search revealed the Stack Overflow article entitled Amazon AWS Filezilla transfer permission denied. Not to rant, but don’t you hate it when a machine you just securely signed up for (key pair and all!) and are renting by the hour uses a security-related concern to prevent you from actually using what you’re paying for?Īnyway, since this didn’t happen the first few hundred times I rented an AWS instance, I didn’t cover it in the Streaming Media article. Then I started trying to transfer files to an instance with FileZilla and got a “write:permission denied” error. Always handy to have a step-by-step guide, so I printed the article draft and went through it point by point to get up and running.

Good thing, too, because I had just started a consulting project that required setting up and encoding on multiple AWS instances. My article How to Launch a Cloud Encoding Computer just posted on the Streaming Media Global site.
