Saturday, August 9, 2014

Fun with SELinux

I installed Xymon on a webserver, and I was having a lot more issues than I thought I would.  I had installed Xymon before, but halfway through I realized that the VM I installed it on before must have been Debian, and I probably just used the .deb packages.  As it turns out, the problems I was having weren't related to CentOS, but SELinux.  I kept getting 403 forbidden errors, which were ultimately permission issues. Eventually I found the solution on the CentOS forums:

# semanage fcontext -a -t public_content_rw_t '/home/user(/.*)?'
# restorecon -R /home/user



Now that I think of it, I had problems with Apache reading a .conf file that I linked to from user directory, so that was probably the same issue.

No comments:

Post a Comment