Advertise

Sunday, February 27, 2011

HOW TO CONFIGURE VSFTPD WITH CHROOT ENABLE

HI Guys,


This session is for configuring chroot JAIL and locking the user to his home directory.

First step is to open the vsftpd configuration file.And uncomment below line .

#vim /etc/vsftpd/vsftpd.conf

##########################################################################
anonymouse_enable=no
local_enable=Yes
write_enable=yes
local_umask=022
dirmessage_enable=yes
xferlog_enable=yes
connect_from_port_20=yes
ascii_upload_enable=yes
ascii_download_enable=yes
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=yes
tcp_wrapper=yes
##########################################################################


And now save the changes and restart the vsftpd service.

#/etc/init.d/vsftpd restart.

Now login to your ftp account and check .You should now will not be able to come out of your home directory.


Hope this session was interesting and should be help for the beginner in the Linux.

Regards
Ram kumar

No comments:

Post a Comment