心刚韧柔.渣学.
?:),防火墙也设置了,为啥FTP还是off呢?
[root@localhost ~]# vim /etc/sysconfig/iptables
[root@localhost ~]# getsebool -a | grep ftp
ftp_home_dir --> off
ftpd_anon_write --&get; off
ftpd_connect_all_unreserved --&get; off
ftpd_connect_db --&get; off
ftpd_full_access --&get; off
ftpd_use_cifs --&get; off
ftpd_use_fusefs --&get; off
ftpd_use_nfs --&get; off
ftpd_use_passive_mode --&get; off
httpd_can_connect_ftp --&get; off
httpd_enable_ftp_server --&get; off
sftpd_anon_write --&get; off
sftpd_enable_homedirs --&get; off
sftpd_full_access --&get; off
sftpd_write_ssh_home --&get; off
tftp_anon_write --&get; off
tftp_home_dir --&get; off
[root@localhost ~]# setsebool -p ftp_home_dir 1
setsebool: invalid option -- 'p'
Usage: setsebool [ -NPV ] boolean value | bool1=val1 bool2=val2...
[root@localhost ~]# setsebool -p ftp_home_dir l
setsebool: invalid option -- 'p'
Usage: setsebool [ -NPV ] boolean value | bool1=val1 bool2=val2...
[root@localhost ~]# setsebool -p ftp_home_dir
setsebool: invalid option -- 'p'
Usage: setsebool [ -NPV ] boolean value | bool1=val1 bool2=val2...
[root@localhost ~]# setsebool -p ftp_home_dir on
setsebool: invalid option -- 'p'
Usage: setsebool [ -NPV ] boolean value | bool1=val1 bool2=val2...
[root@localhost ~]# sestatus -b | grep ftp
ftp_home_dir off
ftpd_anon_write off
ftpd_connect_all_unreserved off
ftpd_connect_db off
ftpd_full_access off
ftpd_use_cifs off
ftpd_use_fusefs off
ftpd_use_nfs off
ftpd_use_passive_mode off
httpd_can_connect_ftp off
httpd_enable_ftp_server off
sftpd_anon_write off
sftpd_enable_homedirs off
sftpd_full_access off
sftpd_write_ssh_home off
tftp_anon_write off
tftp_home_dir off
[root@localhost ~]#
动激/狼太灰.渣学.
执行:setsebool ftp_home_dir 1
心刚韧柔.渣学.
:)我执行了,你看 动激/狼太灰.渣学.
你这是ftp登陆,匿名用户登陆的问题
或setenfoce 0将selinux 改成了Permissive
心刚韧柔.渣学.
可以了
谢谢怎么还不行? 动激/狼太灰.渣学.
执行一下:service iptables status
防火墙的问题
动激/狼太灰.渣学.
service iptables stop
心刚韧柔.渣学.
还不行 心刚韧柔.渣学.
只是下载安装了,没有输入开启命令,:)?灰太狼/激动
enable下?