Report this

What is the reason for this report?

Block Storage Permissions Issue

Posted on October 8, 2016

I’ve set up a block storage volume (/mnt/media) and can access it via SSH and SFTP. However, I can not add files to the volume from my app as it’s owned by root; I receive a permission denied error.

How can I update the permission so that the site owner can store and view files in /mnt/media?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I did this

sudo chown forge:forge /mnt/media

and, of course, it works. I just wanted to check if that is the right thing to do on a block storage volume.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.