Advertise

Saturday, February 26, 2011

HOW TO CONFIGURE VSFTPD AND ENABLE FTP SERVER

HI GUYS.

This i am going to give an steps that need to be follow to configure VSFTPD BASED FTP SERVER WITHOUT CHROOT JAIL ENVIRONMENT.

Please install few vsftpd related packages in the Linux Box as mentioned below

#yum install vsftpd.

Now please configure vsftpd file as mentioned below .

#vim /etc/vsftpd/vsftpd.conf

now uncomment below line to make the ftp server operational.
##########################################################################
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
pam_service_name=vsftpd
userlist_enable=yes
tcp_wrapper=yes
##########################################################################

Now after this restart vsftpd service to let the changes get reflected.

#/etc/init.d/vsftpd restart


Now access the ftp account from ftp tools or from browser.
And in case even after that you are not able to access your ftp home directory then please issue below command in the terminal to allow access to ftp home directory.

#setsebool -P ftp_home_dir 1


this should fix the issue and Hope this article give some good stuff for the beginner in Linux.

Regards
Ram kumar

No comments:

Post a Comment