Question

Block Storage Permissions Issue

Posted October 8, 2016 3.2k views
Ubuntu 16.04Block Storage

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?

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.

×
1 answer

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.

  • When I tried this, I get…
    chown: invalid user: ‘forge:forge’

    Whenever I try to use my rails app to upload an image to the block storage, I get this error message:

    Errno::EACCES (Permission denied @ dirsmkdir - /mnt/volume-sgp1-01)

    I think it’s a similar situation as you have. However, I’m not sure why your solution isn’t working…

Submit an Answer