CentOS 5
Sponsored Link

FTP Server - Vsftpd
2015/01/13
 
Build FTP server to transfer files. Install and configure Vsftpd for it.
[1] Install Vsftpd.
[root@www ~]#
yum -y install vsftpd
[root@www ~]#
vi /etc/vsftpd/vsftpd.conf
# line 12: no anonymous

anonymous_enable=
NO
# line 81,82: uncomment (permit ascii mode transfer)

ascii_upload_enable=YES
ascii_download_enable=YES
# line 96: uncomment ( enable chroot list )

chroot_list_enable=YES
chroot_local_user=YES
# line 99: uncomment ( enable chroot list file )

chroot_list_file=/etc/vsftpd/chroot_list
# line 105: uncomment

ls_recurse_enable=YES
# add follows to the end

# specify root directory ( if don't specify, users' home directory become FTP home directory )

local_root=public_html
# use localtime

use_localtime=YES
[root@www ~]#
vi /etc/vsftpd/chroot_list
# add users you allow to move over their home directory

cent
[root@www ~]#
/etc/rc.d/init.d/vsftpd start

Starting vsftpd for vsftpd:
[  OK  ]

[root@www ~]#
chkconfig vsftpd on
Matched Content
 
Tweet