CentOS 7 semanage SELinux Command Not Found

    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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章