CentOS下安装完vsftpd后报错:500 OOPS: cannot change directory:/home/
来源:互联网 发布:通信协议json rpc 编辑:程序博客网 时间:2024/05/22 10:56
安装好vsftp软件后,链接ftp登陆后提示这样的错误
500 OOPS: cannot change directory:/home/
原因是CentOS系统安装了SELinux,因为默认下是没有开启FTP的支持,所以访问时都被阻止了。
解决办法
//查看SELinux设置
# getsebool -a|grep ftp
ftpd_disable_trans –> off
或者
ftp_home_dir–>off
//使用setsebool命令开启
# setsebool ftpd_disable_trans 1
或者
# setsebool ftp_home_dir 1
//查看当前状态是否是on的状态
# getsebool -a|grep ftp
ftpd_disable_trans –> on
或者
ftp_home_dir–>on
//setsebool使用-P参数,无需每次开机都输入这个命令
# setsebool -P ftpd_disable_trans 1
或者
# setsebool -P ftp_home_dir 1
我的SELinux设置如下
[root@localhost ~]# getsebool -a|grep ftp
allow_ftpd_anon_write –> off
allow_ftpd_full_access –> off
allow_ftpd_use_cifs –> off
allow_ftpd_use_nfs –> off
ftp_home_dir –> on
ftpd_connect_db –> off
ftpd_use_passive_mode –> off
httpd_enable_ftp_server –> off
tftp_anon_write –> off
# service vsftpd restart
- CentOS下安装完vsftpd后报错:500 OOPS: cannot change directory:/home/
- CentOS vsftpd 500 oops cannot change directory /home/
- vsftpd 500 OOPS: cannot change directory:/home/***
- centos vsftpd 500 OOPS: cannot change directory
- vsftpd 500 OOPS: cannot change directory:/home/oracle
- vsftpd 启动问题:500 OOPS: cannot change directory:/home/ftp
- vsftpd 500 OOPS: cannot change directory
- vsftpd 500 OOPS: cannot change directory
- vsftpd 500 OOPS: cannot change directory
- vsftpd报"500 OOPS: cannot change directory"
- vsftp 500 OOPS: cannot change directory:/home/
- vsftp 500 OOPS: cannot change directory:/home/***
- 500 OOPS: cannot change directory:/home/user3
- vsftp 500 OOPS: cannot change directory:/home/
- 500 OOPS: cannot change directory:/home/lubinsu
- 500 OOPS: cannot change directory:/home/xxx”
- 500 OOPS:cannot change directory:/home/***
- 500 OOPS: cannot change directory:/home/
- Unity 摄像机切换镜头
- SOAPFaultException: Unexpected wrapper element {http://ws.konghao.org/}sayHello fo
- 装箱问题
- html学习笔记 3种doctype
- Hello World !
- CentOS下安装完vsftpd后报错:500 OOPS: cannot change directory:/home/
- MongoDB学习(一)——NoSQL简介
- android确定经纬度的小误区
- ubuntu uboot busybox等下载地址
- 深入理解JVM虚拟机学习笔记(二)垃圾收集器与垃圾收集算法
- jeesite快速开发平台(一)----简介
- redis源码安装运行
- php制作验证码
- eclipse开启自动提示