centos7 SELinux

1, view the status of SELinux

sestatus

2, the temporary closure of SELinux

setenforce 0

3, open SELinux

setenforce 1

4, view the status of specific items, such as keywords ftp

# getsebool -a|grep ftp

5, modify the value of an item, e.g. ftpd_full_access

Setsebool ftpd_full_access # 1

 

Guess you like

Origin www.cnblogs.com/jonney-wang/p/11260273.html