Install Vsftpd to configure FTP server to transfer files.
# yum install vsftpd ftp -y
# nano /etc/vsftpd/vsftpd.conf
--
anonymous_enable=NO
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=YES
# add at the last line
local_root=public_html
use_localtime=YES
[root@www ~]# nano /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
# nano /etc/sysconfig/iptables-config
--
IPTABLES_MODULES="ip_conntrack_ftp"
--
# set selinux
setsebool -P ftp_home_dir on
ไม่มีความคิดเห็น:
แสดงความคิดเห็น