500 OOPS: cannot change directory:/home/xxx centos6.x
来源:互联网 发布:中等偏上收入国家 知乎 编辑:程序博客网 时间:2024/05/21 09:25
如果你试过
#修改ftp的根目录只要修改/etc/vsftpd/vsftpd.conf文件即可:#加入如下几行:local_root=/var/www/htmlchroot_local_user=YESanon_root=/var/www/html#注:local_root 针对系统用户;anon_root 针对匿名用户。#重新启动服务:service vsftpd restart#任何一个用户ftp登录到这个服务器上都会chroot到/var/www/html目录下。
还试过
//查看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 –> offservice vsftpd restart
那么来试试这个:
对于ftp这个用户的管理,我们应该查看/etc/passwd ,然后修改ftp用户那行;
vi /etc/passwd
找到你的用户名对应的记录修改之
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
怎么样,是不是很简单!
0 0
- 500 OOPS: cannot change directory:/home/xxx centos6.x
- 500 OOPS: cannot change directory:/home/xxx”
- vsftp登录错误 500 OOPS: cannot change directory:/home/xxx
- FTP错误 500 OOPS: cannot change directory:/home/xxx
- 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
- vsftpd 500 OOPS: cannot change directory:/home/***
- 500 OOPS:cannot change directory:/home/***
- 500 OOPS: cannot change directory:/home/
- 500 OOPS: cannot change directory:/home/
- 500 OOPS: cannot change directory:/home/test
- 连接 FTP 服务器提示“500 OOPS: cannot change directory:/home/xxx”
- 连接 FTP 服务器提示“500 OOPS: cannot change directory:/home/xxx”
- 连接 FTP 服务器提示“500 OOPS: cannot change directory:/home/xxx”
- vsftpd 500 OOPS: cannot change directory:/home/oracle
- 【获奖公布】“我的2016”主题征文活动
- 解决Xcode Umbrella Header for Module Bolts does not include header ‘文件名’
- Ubuntu下模拟器安装美团(arm不兼容)遇到的坑
- c++ mutable
- RHEL7基本命令详解
- 500 OOPS: cannot change directory:/home/xxx centos6.x
- Spring基于 Annotation 的简单介绍
- KF计算过程
- 解决ubuntu花屏的办法
- java爬取拉勾网职位数据
- MongoDb 命令查询所有数据库列表
- SVN revert和clean up去除文件夹的红色感叹号
- iOS接收透传消息
- MyBatis映射文件的resultMap一对一一对多关联