selinux引起的ftp故障
linux开通gssftp之后,客户端连接linux出现以下问题,简单记录之,备忘
D:\>ftp10.181.75.240
Connectedto10.181.75.240.
220sbackupFTPserver(Version5.60)ready.
User(10.181.75.240:(none)):root
331Passwordrequiredforroot.
Password:
230-Nodirectory!Logginginwithhome=/
230Userrootloggedin.
ftp>cd/home
550/home:Permissiondenied.
ftp>cd/tmp
250CWDcommandsuccessful.
解决方法如下:
关闭selinux即可
[root@sbackup~]#cat/etc/selinux/config
#ThisfilecontrolsthestateofSELinuxonthesystem.
#SELINUX=cantakeoneofthesethreevalues:
#enforcing-SELinuxsecuritypolicyisenforced.
#permissive-SELinuxprintswarningsinsteadofenforcing.
#disabled-SELinuxisfullydisabled.
SELINUX=disable
#SELINUXTYPE=typeofpolicyinuse.Possiblevaluesare:
#targeted-Onlytargetednetworkdaemonsareprotected.
#strict-FullSELinuxprotection.
SELINUXTYPE=targeted
将selinux处于permissive模式
[root@sbackup~]#setenforce0