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.
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.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

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