ITeye博客

selinux引起的ftp故障

itspace · 2011-10-18 13:11 · LINUX管理 · 操作系统 · Markdown

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即可

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模式

setenforce 0

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。