VSFTPD 安装

Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

安装


yum install vsftpd

配置


  • 配置文件:/etc/vsftpd/vsftpd.conf
# 不允许匿名访问
#anonymous_enable=YES

# 设置写权限
write_enable=YES

# 限定访问目录
chroot_local_user=YES
chroot_list_file=/etc/vsftpd/chroot_list
local_root=/var/ftp
  • 添加chroot_list文件
touch /etc/vsftpd/chroot_list
  • 启动 vsftpd 服务
systemctl start vsftpd
  • 解决 553 Could not create file
# 修改 /etc/sysconfig/selinux
SELINUX=disable

# 执行
setsebool -P allow_ftpd_full_access 1
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容