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?

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!”


Submit an 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.

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.