I have a CyberPanel Ubuntu 18.04 droplet, how would I allow a ftp user to use the space on a digital ocean volume I attached to the droplet?

Posted January 4, 2019 1.7k views
DigitalOceanBlock StorageUbuntu 18.04

My goal is to get an FTP user to utilize upload to the volume and have the volume publicly accessible. I see the volume mounted via command line, but when I create an FTP user I cannot cant seem to access it, if I try and set the ftp user to go up a folder level “../” it gives me an error “Cannot create FTP account. Error message: 0,Specified path must be inside virtual host home!”

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.

Submit an Answer
1 answer

Hey friend,

You would probably want to mount it in the correct location for the FTP user. I’ve not used CyberPanel but for argument’s sake let’s say that ftpusera has access to /home/ftpusera/public_html (following cPanel logic). In that case I would mount /dev/sda there like this:

mount /dev/sda /home/ftpusera/public_html

This assumes /home/ftpusera/public_html is an empty directory at first, as an empty directory is required to mount the drive in place like that.