在centos7上面搭建ftp服务器
来源:互联网 发布:防辐射服 知乎 编辑:程序博客网 时间:2024/06/06 04:35
在centos7上面搭建ftp服务器
要求:
1、通过账号密码访问
2、只能访问指定目录(不能访问上级目录)
3、只能有读权限(当然你自己也可设置可读写)
步骤一、环境
1、安装
yum install vsftpd
2、关闭相应防火墙
firewall-cmd --add-service=ftp --permanentsystemctl restart firewalld
3、启动ftp服务器
systemctl start vsftpd.service
步骤二、配置ftp服务器(修改vsftpd.conf vim /etc/vsftpd/vsftpd.conf)
1、(1)禁用匿名访问,(2)设置只读权限
anonymous_enable=NOwrite_enable=NO
2、指定用户登陆后目录
local_root=/home/user00/data
3、设置不能范围上级目录,
chroot_local_user=YES
注意:
!!!如果local_root是可写的就要设置这句allow_writeable_chroot=YES但是添加之后重启ftp可能会出错以下文档可解决这个问题http://blog.163.com/xuyuntao521@yeah/blog/static/78424175201551610111875/https://stackoverflow.com/questions/31726754/login-error-vsftpd-on-centos7-azure-box
完成配置之后重启ftp服务器
systemctl restart vsftpd.service
阅读全文
2 0
- 在centos7上面搭建ftp服务器
- centos7 搭建ftp服务器
- CentOS7 搭建FTP服务器
- CentOS7 搭建FTP服务器
- CentOS7搭建FTP服务器
- CentOS7搭建FTP服务器
- centos7搭建ftp服务器
- centos7搭建ftp服务器
- Centos7搭建ftp服务器
- Ubuntu上面搭建ftp服务器
- [CentOs7]搭建ftp服务器(一)
- CentOS7种搭建FTP服务器
- Centos7搭建FTP服务器步骤
- CentOS7下搭建FTP服务器
- 在阿里云CentOS7上搭建ftp服务器
- 在CentOS7.4中使用Vsftpd搭建FTP服务器
- 阿里云服务器 centos7 搭建FTP服务器
- Centos7搭建简单的FTP服务器
- Python django文件传输
- 软件工程第三章第六题
- Git 代码版本还原方法
- spyder2.7启动cmd窗口闪退的解决办法
- spring-boot快速入门实践代码
- 在centos7上面搭建ftp服务器
- php扩展升级
- mysql delete表数据后,如何解决空间大小不变的问题?
- Shell特殊变量:$0, $#, $*, $@, $?, $$和命令行参数
- Python回顾篇
- 大数据前景分析:Hadoop将被Spark替代?
- better-scroll
- MongoDB的全文检索(Text Search)功能
- 计算数组的最大子段和