User Tools

Site Tools


computing:linux:selinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
computing:linux:selinux [2011/12/17 13:34]
gcooper created
computing:linux:selinux [2014/11/22 17:29] (current)
gcooper
Line 28: Line 28:
 system_u:object_r:httpd_sys_content_t:s0 system_u:object_r:httpd_sys_content_t:s0
 </file> </file>
 +
 +===== Disable selinux =====
 +
 +Edit the config file and set to ''disabled'':
 +
 +<file>
 +sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config
 +
 +setenforce 0
 +</file>
 +
 +===== NFS =====
 +
 +http://serverfault.com/questions/554659/selinux-contexts-with-nfs-shares
 +
 +For a NFS mounted web folder (i.e. a folder writable by the Apache web server in /var/www/html/), edit the ''/etc/fstab'' mount options:
 +
 +<file>
 +vim /etc/fstab
 +</file>
 +
 +<file>
 +# Mount the NFS data store
 +ip.of.nfs.srv:/path/to/share    /var/www/html/folder_name/  nfs  _netdev,context="system_u:object_r:httpd_sys_rw_content_t:s0"  0 0
 +</file>
 +
computing/linux/selinux.1324154080.txt.gz · Last modified: 2011/12/17 13:34 by gcooper