Question

FTP User with vsftpd

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.


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.