Report this

What is the reason for this report?

FTP User with vsftpd

Posted on June 2, 2019

I did as was recommended in this post and reading some other tutorials https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-debian-9 but it’s not working, I have 2 users, one with sudo access, it’s my regular account, and then I’ve created another one for a friend, just for FTP access.He can log in and he can’t go to my regular account’s home directory,But he can go to higher levels,If someone can help me out i really appreciate it,Thanks in advance.



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!

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.

Linux by default will restrict non-sudo access to another user’s home directory. I can’t imagine what your trying to achieve will work based on the small amount of info I could glean from your question.

You either need to move the folder that he is trying to access to somewhere else on the server (outside of user’s home directories) and configure it appropriately with vsftpd, or if there isn’t an urgent need. You may be able to restrict your friends FTP access to his own home directory (as the tutorial seems to do) and then use a seperate script (maybe run by CRON) to check for uploaded files every few minutes and move them into the location you need them.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.