setenforce命令是用来开启和关闭SELinux的。
语法格式: setenforce [参数]
常用参数:
[ 1 ] 开启
[ 0 ] 关闭
参考实例
开启SELinux:
[root@localhost samba]# setenforce 1
关闭SELinux:
[root@localhost samba]# setenforce 0
针对于目录共享设置:
如 /home/samba/test目录设置成完全的共享就应该在字符状态写输入:
chcon -t samba_share_t /home/samba/test
标签:samba,SELinux,setenforce,设置,test,home From: https://www.cnblogs.com/pldygf/p/17157079.html