netstat -lantp | grep 21 查看一下端口21是否开启 若果没有开启,建议你在重装一次,或者详细的检查一下配置文件,应该是配置文件出现了问题 你是想查看防火墙设置吧?getsebool -a|grep ftp #查看ftp相关写权限是否打开setsebool -P *** #使某选项生效ps -ef | grep ftp
getenforcegetsebool-a | grep ftp_home_dir setsebool ftp_home_dir ongetsebool-a | grep ftp_home_dir service xinetd restart redhat ftp service 原创 kaerser 2013-11-19 09:29:43 1367阅读 每天进步一点点:(14) SELinux基础 getenforcegetseboolsetsebool ...
seinfo -b | grep httpd sesearch命令 如果查到的相关类型或者布尔值,想要知道详细规则时,使用sesearch命令查询。 语法 sesearch [-a] [-s 主体类型] [-t 目标类型] [-b 布尔值] 选项 -a:列出该类型或布尔值的所有相关信息 -t:后面还要接类型,例如 -t httpd_t -b:后面还要接布尔值的规则 实例 -b...
# getsebool -a | grep ftp getsebool Command Examples 1. If you would like a list of all the bare bones of SELinux booleans and their values, getsebool -a is an alternative, as follows: # getsebool -a 2. Query the status of the httpd_enable_homedirs boolean value: # getsebool httpd_...