VSFTP is set up and I want users not to go into other directories then their /home. I've set:
chroot_local_user=YES
But it doesn't seem to work (after restarting).
Could it be that I have the wrong config file? Or is there other settings or ways of logging in that skip this config line?
Edit: Together with someone else I found that the vsftp was not at all the server listening to the port.. Therefor, I didn't see my changes reflected. Solved the problem somewhere else thus.
Still, the answers below might solve the problem for others who have this.
Do you have the
chroot_list_enable
option enabled? If so, any users listed inchroot_list_file
will not be chrooted.I think part of this is redundant, but I've not gone back to poke at it, since it works. (I think I was where you were when first setting this up, which is why chroot_local_user is set...)
...and /etc/vsftpd.chroot_list is an empty file.
Make sure user's home directory is set and correct (not /root):