听枫小站
CentOS 7 semanage SELinux Command Not Found
2017-9-18 楼台听枫雨


1、使用yum查找提供此功能的的软件包:


    # yum provides /usr/sbin/semanage


    或者


    # yum whatprovides /usr/sbin/semanage


    查找结果如下:


policycoreutils-python-2.5-8.el7.x86_64 : SELinux policy core python utilities
源    :base
匹配来源:
文件名    :/usr/sbin/semanage
policycoreutils-python-2.5-9.el7.x86_64 : SELinux policy core python utilities
源    :updates
匹配来源:
文件名    :/usr/sbin/semanage
policycoreutils-python-2.5-11.el7_3.x86_64 : SELinux policy core python utilities
源    :updates
匹配来源:
文件名    :/usr/sbin/semanage






    2、安装policycoreutils-python软件包:


    # yum -y install policycoreutils-python





    3、安装完成即可使用:


[root@CentOS7 ~]# semanage boolean -l | grep ftpd_full_access
ftpd_full_access               (开    ,    开)  Allow ftpd to full access









CentOS 7 semanage SELinux Command Not Found

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容