Saturday, February 11, 2012

Restrict the user his home dir at ftp login

Go to /etc/vsftpd/vsftpd.conf file

# vi /etc/vsftpd/vsftpd.conf

add the below line at the end of file

chroot_local_user=YES

save the file and restart the vsftpd serverice.

ex :
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
#listen_ipv6=YES

chroot_local_user=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES

No comments:

Post a Comment