yum install -y ftp vsftpd
systemctl start vsftpd
systemctl status vsftpd
systemctl enable vsftpd.service
添加uftp用户:
useradd -m uftp
设置uftp用户登录密码
passwd uftp
编辑配置文件:
添加登录用户白名单:
/etc/vsftpd/user_list
uftp
vim /etc/vsftpd/vsftpd.conf
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
local_root=/datum/uftp
userlist_deny=no
userlist_file=/etc/vsftpd/user_list
local_umask=022
网友评论