fedora32 安装vsftpd

参考:https://www.cnblogs.com/micq/articles/6168618.html

          https://blog.csdn.net/fhzy123/article/details/51347834

          https://www.cnblogs.com/lichenghong/p/13141324.html

1、安装vsftpd

    

dnf install vsftpd -y

2、配置vsftpd.conf

vi /etc/vsftpd/vsftpd.conf  

#参考文档:https://www.cnblogs.com/micq/articles/6168618.html
anonymous_enable=YES    #允许匿名访问  
local_enable=YES    #允许本地用户访问(/etc/passwd中的用户)  
write_enable=YES    #允许写入权限,包括修改,删除  
anon_upload_enable=YES    #允许匿名用户上传  
anon_mkdir_write_enable=YES    #允许匿名用户建立目录  
ascii_upload_enable=YES    #允许ascii上传  
ascii_download_enable=YES        #允许ascii下载  
 anonymous_enable=NO

#参考文档:https://blog.csdn.net/fhzy123/article/details/51347834
# 是否讲所有用户限制在主目录
 chroot_local_user=YES
 # 阻止用户访问上级目录
 chroot_list_enable=YES
 # (default follows)
 # 阻止用户访问上级目录
 chroot_list_file=/etc/vsftpd/chroot_list

# 增加
allow_writeable_chroot=YES

注意上面的“chroot_list_file=/etc/vsftpd/chroot_list"”,默认没有目录,创建目录:chroot_list,设置权限

cd /etc/vsftpd/
mkdir chroot_list
chmod 777 chroot_list

3、关闭防火墙firewalld

#参考文档:https://www.cnblogs.com/lichenghong/p/13141324.html
systemctl stop firewalld #临时关闭
systemctl disable firewalld #永久关闭,即设置开机的时候不自动启动

4、启动vsftpd服务

service vsftpd restart

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值