yum -y install vsftpd
nano /etc/vsftpd/vsftpd.conf
# line 12: no болгож өөрчилнө
anonymous_enable=NO
# line 80,81: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 95, 96: uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES
# line 98: uncomment ( specify chroot list )
chroot_list_file=/etc/vsftpd/chroot_list
# line 104: uncomment
ls_recurse_enable=YES
# хамгийн сүүлийн мөрөнд нэмэх
# specify root directory ( if don't specify, users' home directory become FTP home directory)
local_root=public_html
# use localtime
use_localtime=YES
nano /etc/vsftpd/chroot_list
# хэрэглэгчийн home directory -н нэрийг бичнэ
username
/etc/rc.d/init.d/vsftpd start
Starting vsftpd for vsftpd: [ OK ]
chkconfig vsftpd on