登陆ftp时报:500 OOPS:cannot change directory 我的selinux是关闭的,那么是什么问题导致?

2025-03-10 13:55:34
推荐回答(1个)
回答1:

你可以检查下你要切换的目录对应有没有可执行权限:

比如:cannot change directory:/home/svn/disk/ftp/gg

检查对应的每个目录权限:

发现svn的目录期限为drwx------.  4 root      root         4096 10月 13 2017 svn

第一个字母:代表文件类型 
第2~4字符:表示当前用户的权限 
第5~7字符:表示当前用户组权限 
第8~10字符:表示其他用户的权限

发现其他用户的权限没有,改为

drwx-----x.  4 root      root         4096 10月 13 2017 svn

后面就可以登录了

修改操作