13/12: Fedora Core6でvsftpd のログイン失敗
Fedora Core6
内容
Fedora Core6をインストール後FFFTPでログインできない
原因
ファイアウォールとSELinuxが有効になっていた為
解決
別でファイアウォールを設定するためファイアウォールとSELinuxを無効にする
ファイアウォールの停止
[root@restrat ~]# /etc/rc.d/init.d/iptables stop
[root@restrat ~]# chkconfig iptables off
[root@restrat ~]# /etc/rc.d/init.d/ip6tables stop
[root@restrat ~]# chkconfig ip6tables off
SELinuxを無効にする
[root@restrat ~]# setenforce 0
[root@restrat ~]# getenforce
Permissive
[root@restrat ~]# vi /etc/sysconfig/selinux
SELINUX=disabled ← enforcingをdisabledに変更
[root@restart~]#slogin user@servername
でログイン時にエラーとなる
原因
[root@restart~]#cd /home
[root@restart~]#ll
[root@restart~]#drwxrwxrwx 3 user user 4096 12月 11 18:12 user
ユーザーホルダのバーミッションがグループ、その他のユーザーへも
書き込み権限、実行可能権限がついていた為
[root@restart~]#chmod 700 user
[root@restart~]#drwxr------ 3 user user 4096 12月 11 18:12 user
環境
Fedora Core6