首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

selinux唤起的ftp故障

2012-06-26 
selinux引起的ftp故障linux开通gssftp之后,客户端连接linux出现以下问题,简单记录之,备忘D:\ftp 10.181.7

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

热点排行