User Tools

Site Tools


computing:linux:selinux

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:selinux [2014/11/01 16:53]
gcooper
computing:linux:selinux [2014/11/22 17:29] (current)
gcooper
Line 29: Line 29:
 </file> </file>
  
-==== Disable selinux ====+===== Disable selinux =====
  
 Edit the config file and set to ''disabled'': Edit the config file and set to ''disabled'':
Line 38: Line 38:
 setenforce 0 setenforce 0
 </file> </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.1414882434.txt.gz · Last modified: 2014/11/01 16:53 by gcooper