Fixing FileZilla Write Permission Errors in AWS Instances

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

Then I started trying to transfer files to an instance with FileZilla and got a “write:permission denied” error. 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?

Anyway, 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. Now it seems that many readers may encounter the same issue so I wanted to address it here. 

A quick Google search revealed the Stack Overflow article entitled Amazon AWS Filezilla transfer permission denied. The article proposes the following three OS-specific fixes to run in Terminal. 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 Stack Overflow example was to a web folder; for me, it was a video folder off the root.

Here are the fixes from the Stack Overflow article:

if you are using centOs then use

sudo chown -R centos:centos /var/www/html
sudo chmod -R 755 /var/www/html

For Ubuntu

sudo chown -R ubuntu:ubuntu /var/www/html
sudo chmod -R 755 /var/www/html

For Amazon ami

sudo chown -R ec2-user:ec2-user /var/www/html
sudo chmod -R 755 /var/www/html

Since I was working with an Amazon instance I tried the third approach first, which didn’t work. Then I tried the Ubuntu correction (since it was an Ubuntu instance), and that did work.

About Jan Ozer

Avatar photo
I help companies train new technical hires in streaming media-related positions; I also help companies optimize their codec selections and encoding stacks and evaluate new encoders and codecs. I am a contributing editor to Streaming Media Magazine, writing about codecs and encoding tools. I have written multiple authoritative books on video encoding, including Video Encoding by the Numbers: Eliminate the Guesswork from your Streaming Video (https://amzn.to/3kV6R1j) and Learn to Produce Video with FFmpeg: In Thirty Minutes or Less (https://amzn.to/3ZJih7e). I have multiple courses relating to streaming media production, all available at https://bit.ly/slc_courses. I currently work as www.netint.com as a Senior Director in Marketing.

Check Also

Eric Schumacher-Rasmussen, id3as CMO

The Business Case for Norsk: Interview with id3as CMO Eric Schumacher-Rasmussen

I recently spoke with Eric Schumacher-Rasmussen, the Chief Marketing Officer at id3as, about their flagship …

Figure shows the different components to live streaming latency.

The Quality Cost of Low-Latency Transcoding

While low-latency transcoding sounds desirable, low-latency transcode settings can reduce quality and may not noticeably …

NAB Session on AI in Video Streaming

Like most encoding professionals, I’ve followed AI-related streaming advancements for the last few years. I’m …

Leave a Reply

Your email address will not be published. Required fields are marked *