Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14361 reviews 1715 hosting providers

Questions & Answers

SELinux problem

Apr 10, 2012 by ross
hi there

Recently I moved my CVS server to a new machine that is running SELinux in enforcing mode. And now I’m having a problem logging into the CVS server. I checked the file permissions (Initial permissions:
drwxrwxr-x root cvsadmin system_u:object_r:home_root_t:s0 /home/cvsroot ) and it could not read the config file even though it’s world readable, So I guess this SELinux problem. Does anyone know how to fix this?

1 Answer

0 votes
Apr 10, 2012 by lionhost
change the permissions using thw following code
# semanage fcontext -a -t cvs_data_t "/home/cvsroot(/.*)?"
# /sbin/restorecon -R -v /home/cvsroot

New permissions:
drwxrwxr-x root cvsadmin system_u:object_r:cvs_data_t:s0 /home/cvsroot