Install Vsftpd to configure FTP server to transfer files on debian

$ apt-get install vsftpd
$  vi /etc/vsftpd.conf
# line 23: change( disable anonymous )

anonymous_enable=NO

# line 26: uncomment

local_enable=YES

# line 29: uncomment

write_enable=YES

# line 97,98: uncomment ( allow ascii mode transfer )

ascii_upload_enable=YES
ascii_download_enable=YES

# line 120: uncomment ( enable chroot )

chroot_local_user=YES

# line 121: uncomment ( enable chroot list )

chroot_list_enable=YES

# line 123: uncomment ( enable chroot list )

chroot_list_file=/etc/vsftpd.chroot_list

# line 129: uncomment

ls_recurse_enable=YES

# add at the last line
# specify root directory ( if don’t specify, users’ home directory become FTP home directory)
local_root=public_html
/etc/init.d/vsftpd restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s