ansible lineinfile 关闭selinux】的更多相关文章

1.查看SELinux状态:getenforce Enforcing(启动) disable(禁用) 1.禁用SELinux(重启后依然生效) 修改 vi /etc/sysconfig/selinux [root@developer ~]#  vi  /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values:…
1.关闭SELinux: 编辑SELinux配置文件: [root@Redis selinux]# vim /etc/selinux/config 修改SELINUX配置项为disable SELINUX=disabled 2.关闭iptables防火墙: 清除iptables的配置文件条目: [root@Redis selinux]# iptables -F [root@Redis selinux]# iptables -X [root@Redis selinux]# iptables -Z…
开发thinkphp的时候, 总是会出现各种个样 的奇怪的毛病, 比如: 说什么Application目录不可写, 比如: 说什么 _STORAGE_WRITE_ERROR, 不能生成 Runtime/Cache/Home/下的缓存文件等. 作为初期开发, 可以不用考虑 安全和性能??? 因此, 为了保证开发的顺利进行, 先把代码写出来, 因此, 第一步就是, 给APPLICATION 完全权限 777, 同时关闭selinux, 将selinux设为0. 就不会出现各种权限, 安全原因引起的…
SELinux (Security-Enhanced Linux) in Fedora is an implementation of mandatory access control in the Linux kernel using the Linux Security Modules (LSM) framework. Standard Linux security is a discretionary access control model. Discretionary access c…
查看SELinux状态: 1   /usr/sbin/sestatus -v | grep "SELinux status:" ##如果SELinux status参数为enabled即为开启状态 1   getenforce ##除了上面的命令还可以使用这个命令,输出结果是permissive为关闭,enforcing为开启. 关闭SELinux: 1.临时关闭(不重启系统即可生效): 1     setenforce 0 ##设置SELinux为permissive模式,即关闭SE…
背景 在某一天重启了虚拟机的 linux 之后,我的 windows 在连接上 samba 之后,点击某些文件夹的时候,会出现没有权限打开的情况.这问题折腾了我一度重新配置了好几次 samba 的配置,然而无果. 解决 经过搜索,发现有两个办法可以解决samba的某些文件夹无法访问的问题. 方法一 修改文件和文件夹的安全策略: 方法二 关闭 selinux: 第一种方法并不合适,只是临时解决的一种方案.因为在 windows 下新建了一个 linux 文件夹之后,下一次重启了 linux ,新的…
setenforce 0 设置SELinux 成为permissive模式 临时关闭selinux的…
一.修改主机名 1.零时修改 [root@localhost network-scripts]# hostname jw07 然后就可以看到我们的主机名被修改了…
1.关闭 selinux 修改 它的配置文档 /etc/selinux/conf 修改 SELINUX=disabled 或者permissive 2. 关闭 防火墙 输入命令 systemctl disabled firewalld.service 开机关闭 systemctl stop firewalld.service 暂时关闭…