500 OOPS: cannot change directory:/home/xxx”
参考 http://hi.baidu.com/jenrald/item/b8921b82b5ade72a100ef3c0
一 前言
用ftp命令连接 ftp服务器时提示:
“500 OOPS: cannot change directory:/home/xxx”
二解决方案
百度,经证实有效解决方案是 #setseboolftp_home_diron
现将参考网页内容摘抄如下:
今天在CentOS上测试FTP服务器验证登录,提示“500OOPS:cannotchangedirectory:/home/xxx”,不能切换到用户宿主目录?一看到与宿主目录有关,第一反应就是会不会又跟SELinux中的策略有关,因为之前测试Samba实现“允许用户通过Windows客户端访问自己的宿主目录”,就需要先执行setsebool-Psamba_enable_home_dirson,而且用getsebool-a|grepftp也看到了一个“ftp_home_dir-->off”。不过还是先百度了一下,继而在终端下执行:
#setseboolftpd_disable_trans1
#servicevsftpdrestart
结果刚执行完第一条就提示“Couldnotchangeactivebooleans:Invalidboolean”,又是没见过的提示,baidu~,果然与那个“ftp_home_dir”有关,执行:
#setseboolftp_home_diron(注:在服务running状态下执行时间会比较久)
then~
#ftp192.168.2.2
Connectedto192.168.2.2(192.168.2.2).
220(vsFTPd2.2.2)
Name(192.168.2.2:root):azune
331Pleasespecifythepassword.
Password:
230Loginsuccessful.
RemotesystemtypeisUNIX.
Usingbinarymodetotransferfiles.
ftp>ls
227EnteringPassiveMode(192,168,2,2,54,76).
150Herecomesthedirectorylisting.
drwxr-xr-x25005004096Sep1810:27Desktop
drwxr-xr-x25005004096Sep1810:27Documents
drwxr-xr-x25005004096Sep1810:27Downloads
drwxr-xr-x25005004096Sep1810:27Music
drwxr-xr-x25005004096Sep1810:27Pictures
drwxr-xr-x25005004096Sep1810:27Public
drwxr-xr-x25005004096Sep1810:27Templates
drwxr-xr-x25005004096Sep1810:27Videos
226DirectorysendOK.
ftp>exit
221Goodbye.
至于ftp登录时提示“-bash:ftp:commandnotfound”的话,是缺少ftp客户端的包,安装上就好了。
500 OOPS: cannot change directory:/home/xxx”相关推荐
- 不关闭seLinux解决vsftpd服务本地用户不能登录问题(500 OOPS: cannot change directory:/home/***
不关闭seLinux解决vsftpd服务本地用户不能登录问题(500 OOPS: cannot change directory:/home/*** 参考文章: (1)不关闭seLinux解决vsft ...
- 500 OOPS:cannot change directory:/root 问题
为什么80%的码农都做不了架构师?>>> 安装完red hat enterprise linux 5后,ftp不能使用root用户,将/etc/vsftpd/ftpusers和 ...
- 关闭防火墙命令 500 OOPS: cannot change directory:
关闭防火墙命令 (1) 重启后永久性生效: 开启:chkconfig iptables on 关闭:chkconfig iptables off (2) 即时生效,重启后失效: ...
- VsFTP出现500 OOPS: cannot change directory的解决办法
cannot change directory:/home/*** ftp服务器连接失败,错误提示: 500 OOPS: cannot change directory:/home/******* 5 ...
- 500 OOPS: cannot change directory”解决方法
vsftpd出现"Response: 500 OOPS: cannot change directory"解决方法 笔者用的Linux发行版本为centos6.4,当用FTP客户端 ...
- vsftpd出现500 OOPS: cannot change directory的解决办法
ftp服务器连接失败,错误提示: 500 OOPS: cannot change directory:/home/******* 500 OOPS: child died 解决方法: 1 在终端输入命 ...
- oracle 500,500 OOPS: cannot change directory问题
Normal 0 false false false EN-US ZH-CN X-NONE Normal 0 false false false EN-US ZH-CN X-NONE 1.在CentO ...
- 使用客户端登陆ftp 500 OOPS: cannot change directory:/home/virftp解决
使用客户端登陆ftp 500 OOPS: cannot change directory:/home/virftp解决 可以在windows上使用一ftp客户端来尝试进行登录.这个时候一般都会报一个错 ...
- FTP 331 Please specify the password 500 OOPS: cannot change directory
FTP安装后,实用ftp客户端测试报错,FTP 331 Please specify the password 和 500 OOPS: cannot change directory 查阅网上方法无果 ...
最新文章
- 处理一键安装LNMP环境之后,phpinfo.php打开不显示内容的问题
- xml.modify() 实例演示(二)
- Spring的HelloWorld
- SegmentFault 高阳:从开发者到创业者
- php mysql unsigned,PHP MySQL 核心
- 理解CSS3 max/min-content及fit-content等width值
- Java并行流 No thread-bound request found
- 题解 【NOIP2010】关押罪犯
- JavaWeb将图片显示在浏览器中
- MyCat2测试实战 -- 王者归来的故事
- anki 神级插件 fastWQ 提取本地朗文音频
- android 限制输入 表情以及颜文字及特殊字符
- 关于道路标志牌的标记和数字标记
- 修复音频服务器,以上就是Win7系统如何修复音频服务未运行的具体方法
- 【新技术】:移动支付过程中的NFC技术
- R语言统计入门第四章描述性统计和图形——4.6表格的图形显示
- 未来五年,不懂人工智能的程序员不会被淘汰
- 【Arduino】2017年电子设计大赛B题 滚球控制系统|板球系统
- 职高计算机应用基础试题,中职职高计算机应用基础考试试题doc
- 你睡得那么晚,一定是程序员吧
热门文章
- 阅读SSM项目之scm【第一篇】
- MySQL-bin.index no found (errcode:13-perssion)
- PostgreSQL 最佳实践 - 在线增量备份与任意时间点恢复
- 给ListView视图添加行号
- 运维自动化之使用PHP+MYSQL+SHELL打造私有监控系统(七)
- 当宝石遇到宝藏 “不思进取”的PopCap
- com.mysql.jdbc.PacketTooBigException,及mysql 设置 max_allow_packet
- AjaxPro 未定义错误
- Geodatabase模型
- centos7下cups + samba共打印服务