selinux引起的ftp故障
linux开通gssftp之后,客户端连接linux出现以下问题,简单记录之,备忘
D:\>ftp 10.181.75.240
Connected to 10.181.75.240.
220 sbackup FTP server (Version 5.60) ready.
User (10.181.75.240:(none)): root
331 Password required for root.
Password:
230-No directory! Logging in with home=/
230 User root logged in.
ftp> cd /home
550 /home: Permission denied.
ftp> cd /tmp
250 CWD command successful.
解决方法如下:
关闭selinux即可
[root@sbackup ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disable
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
将selinux处于permissive模式
[root@sbackup ~]# setenforce 0