- 安装vsftpd
dnf install vsftpd -y
- 启动服务
systemctl restart vsftbd 启动ftp服务
- 关闭防火墙,Linux
systemctl stop firewalld 关闭防火墙
setenforce 0
- 配置vsftpd
useradd -s /sbin/nologin teacher
vim /etc/ysftpd/vfile
lucy
openlab
lack
openlab
david
openlab
dylan
openlab
db_load -T-t hash -f /etc/ysftpd/vfile /etc/ysftpd/vfile.db
shmod 600 /etc/ysftpd/vfile.db
vim /etc/ysftpd/ysftp.d.conf
guest_enable=YES
guest_username=teacher
yirtuaLuse_local privs=YES
pam_service_name=ysftpd
vim /ets/pam.d/vsftpd
auth required pam_userdb.so db=/etc/ysftpd/xfile
account required pam_userdb.so db=/etc/ysftpd/xfile
systemctl restart vsftpd