Advertisements
Open the vstpd configuration file
vi /etc/vsftpd/vsftpd.conf
Add the following variable
chroot_local_user=YES
Restart the vsftpd service
/etc/init.d/vsftpd restart
Now on wards when the user logs in via ftp he gets into his home directory. But he cannot change the directory out of it. This is known as jailed environment.
Nice post, really helpful.
ReplyDelete