现在位置:首页 » linux技术部 » CentOS 7 semanage SELinux Command Not Found

CentOS 7 semanage SELinux Command Not Found

时间:2017-9-18 | 作者:楼台听枫雨 | 分类:linux技术部 | 评论(0) | 浏览(4993) | 标签: semanage selinux

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

本文固定链接:http://www.fengtec.net/?post=51
本文由楼台听枫雨原创或编辑,互联分享,尊重版权,转载请以链接形式标明本文地址

发表评论: