Report this

What is the reason for this report?

How to set permissions on boot for a Volume

Posted on June 27, 2020

Hi,

I’ve managed to set up a volume and attached it to my droplet in the storage folder of my project. On boot this is done by fstab by the following line.

/dev/disk/by-id/scsi-0DO_Volume_volume-ams3-01 /path/to/mount-point ext4 defaults,nofail,discard 0 0

However after every reboot I need to set the permissions by performing:

sudo chown -R forge:forge /path/to/mount-point

Otherwise the forge user has no permissions on the volume. Can this be automated and is there a best practice for this?

Thanks in advance.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.