0%

centos下安装ftpserver

还是装个ftp<!–more–>

yum -y install vsftpd
chkconfig vsftpd on

vi /etc/vsftpd/vsftpd.conf

chroot_list_enable=YES

(default follows)

chroot_list_file=/etc/vsftpd.chroot_list

改为
chroot_list_enable=YES

(default follows)

chroot_list_file=/etc/vsftpd/chroot_list

useradd -d /home/wwwroot/ftpuser -g ftp -s /sbin/nologin ftpuser

passwd ftpuser

vi /etc/vsftpd/chroot_list

service vsftpd restart