SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


redhatselinux
Differences

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

Link to this comparison view

Both sides previous revision Previous revision
redhatselinux [2014/11/20 21:35]
sjoerd [SELinux and Non Default Home Directories]
redhatselinux [2014/11/24 14:24] (current)
sjoerd [SELinux and Non Default Home Directories]
Line 311: Line 311:
 </​code>​ </​code>​
  
-To solve this error a few steps are required. First you need to configure SELinux to include home directory checking through the passwd file. To do so, open the semanage config file and set the usepasswd option to true:+To solve this error a few steps are required. First of all check if the file already exists. This has to be the case, as I've seen the fix below fail when this was not the case. If not, as the application user create the file with this command: 
 +<​code>​ 
 +[appuser@selinuxbox ~]$ touch .Xauthority 
 +</​code>​ 
 + 
 + 
 +Then you need to configure SELinux to include home directory checking through the passwd file. To do so, open the semanage config file and set the usepasswd option to true:
 <​code>​ <​code>​
 [adminsjoerd@selinuxbox ~]$ sudo vi /​etc/​selinux/​semanage.conf [adminsjoerd@selinuxbox ~]$ sudo vi /​etc/​selinux/​semanage.conf
redhatselinux.txt · Last modified: 2014/11/24 14:24 by sjoerd