Owner/Videstra
I need to create a user that has access to a web address that I’m managing on DO. I have the web server and ftp installed and running. What I would like to do is create a user whose home page is /var/www/html/severestudios and give them ftp read/write access (only to that folder). I have followed a few tutorials indicating the following should work…
adduser <username> usermod -d /var/www/html/severestudios <username> chown <username>:<username> <username> chown www-data:www-data /var/www/html/severestudios usermod -a -G www-data <username>
I try to log in with WinSCP (standard FTP - no encryption) and either get: OOPS: cannot change directory:/home/severestudios/ftp or worse OOPS: priv_sock_get_cmd
It doesn’t make sense that it’s trying to change the directory to /home/severestudios - that is not the home directory I set, nor is it the one that appears in the /etc/passwd file (the right one is in there).
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!
Hi @dandesjardins,
It seems like you have set your home directory to /home/username/. Anyway, there a few services which you can use to help you achieve that.
I’ll recommend using vsftpd as it will tremendously help you out. Additionally, DigitalOcean have a pretty good article on how to configure it:
It should help you out pretty well.
Regards, KFSys
I was able to do what I needed in an easy enough way by following the article here: [https://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/]
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.