How to jail a user on vsftpd?


#1

Hi guys.

Im trying to jail a new user on ftp.

ex. user should be jailed to /home/xxxxname/ and they may not be able to walk back from home.

I located the vsftpd.conf under /etc
I have also checked:

Chroot_local_user=YES
Chroot_list_enable=NO

Located this info, så my settings should be right:
To chroot users
To jail / chroot users (not the VSFTPD service), there are three choices. Search for “chroot_local_users” on the file and consider one of the following: Code:

1. All users are jailed by default:

chroot_local_user=YES
chroot_list_enable=NO

2. Just some users are jailed:

chroot_local_user=NO
chroot_list_enable=YES

Create the file /etc/vsftpd.chroot_list with a list of the jailed users.

3. Just some users are “free”:

chroot_local_user=YES
chroot_list_enable=YES

Create the file /etc/vsftpd.chroot_list with a list of the “free” users.

I try to restart the service by : /etc/init.d/vsftpd restart
Still a test user can go back in the ftp section :frowning:

What am I doing wrong?

Thanks

Morphy


#2

they already are as far as i know…


#3

No dont work :frowning: