https://bbs.aliyun.com/read/534639.html?spm=5176.bbsr539360.0.0.BBXGIs
固定在一个目录下
https://www.iyunv.com/thread-352895-1-1.html
CentOS7安装FTP(vsftpd)配置chroot_local_user=YES后启动失败
安装vsftpd
yum install -y vsftpd
编辑ftp配置文件
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
anonymous_enable=YES
chroot_local_user=YES
去掉前面的注释
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
不受限制的用户列表,用不用都OK
allow_writeable_chroot=YES
加上这行解决了无法登陆的问题
启动/开机启动ftp
systemctl start vsftpd.service #启动
systemctl enable vsftpd.service #设置vsftpd开机启动
本文详细介绍如何在CentOS7上安装与配置FTP服务(vsftpd),包括启用chroot限制本地用户会话、配置允许写入的chroot环境等步骤,并解决启动失败问题。
481

被折叠的 条评论
为什么被折叠?



