centos下ftp服务器搭建实践
2015-09-25 23:56
591 查看
1、安装yum install vsftpd
2、配置:
vim /etc/vsftpd/chroot_list
#允许本地用户xxx和yyy访问FTP目录(默认为用户主目录)
xxx
yyy
/etc/vsftpd/vsftpd.conf(cat /etc/vsftpd/vsftpd.conf |grep -v ^#)
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
#chroot_local_user=NO只允许访问主目录,YES可以访问主目录外的其他目录
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
3、常见问题
①不能切换目录错误执行:
setsebool -P ftp_home_dir 1
service vsftpd restart
②如果FTP不能登录
删除/etc/vsftp/ftpusers、/etc/vsftp/user_list下的用户
晒图如下:
2、配置:
vim /etc/vsftpd/chroot_list
#允许本地用户xxx和yyy访问FTP目录(默认为用户主目录)
xxx
yyy
/etc/vsftpd/vsftpd.conf(cat /etc/vsftpd/vsftpd.conf |grep -v ^#)
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
ascii_upload_enable=YES
ascii_download_enable=YES
#chroot_local_user=NO只允许访问主目录,YES可以访问主目录外的其他目录
chroot_local_user=NO
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
3、常见问题
①不能切换目录错误执行:
setsebool -P ftp_home_dir 1
service vsftpd restart
②如果FTP不能登录
删除/etc/vsftp/ftpusers、/etc/vsftp/user_list下的用户
晒图如下:
相关文章推荐
- Centos6 编译安装Python
- 硬盘安装CentOS 6.2以及添加GRUB启动菜单
- CentOS 6.2实战部署Nginx+MySQL+PHP
- CentOS 7系统配置上的变化解析
- CentOS下DB2数据库安装过程详解
- CentOS 6.3下编译安装Ruby 2.0笔记
- Linux系统 改善FTP服务器的安全性
- FTP服务器 架设考虑三方面的安全因素第1/2页
- RHE5服务器管理之搭建FTP服务器步骤分享[图]
- 用winrar和ftp命令实现自动备份文件并自动上传到指定的ftp服务器
- winxp 系统下架设FTP服务器的步骤
- Serv-U 建立FTP服务器教程
- 在Centos 5.5 上编译安装mysql 5.5.9
- CentOS 6.5源码安装Erlang教程
- centos 5.6 升级php到5.3的方法
- CentOS mysql安装系统方法
- centos下安装mysql服务器的方法
- CentOS 5.1 4.6最新官方下载地址列表