Configuring vsftpd for multiple users

296 Views Asked by At

I have a Ubuntu 22.04 VM that I want to use as an SFTP server. I installed and configured vsftpd and it works, just not the way I want.

I want to have 2 users - UserA and UserB. Both are only allowed to use their home directory, they can FTP files to sub-directories but are NOT allowed to "cd .." and move above their home directory.

At the moment my vsftpd.conf looks like this

chroot_local_user=NO
chroot_list_enable=YES
user_sub_token=$USER
chroot_list_file=/etc/vsftpd.chroot_list

No matter what options I choose I do this:

systemctl restart vsftpd

and test and both users can "cd .." and freely move around the FTP server.

How do I restrict these users?

0

There are 0 best solutions below