{"id":23,"date":"2012-05-01T17:06:00","date_gmt":"2012-05-01T17:06:00","guid":{"rendered":""},"modified":"2021-08-31T10:12:45","modified_gmt":"2021-08-31T09:12:45","slug":"disable-selinux-on-centos-5-and-remove-the-security-context-associated-with-files","status":"publish","type":"post","link":"https:\/\/www.srivittal.com\/wp\/?p=23","title":{"rendered":"Disable SELinux on CentOS 5 and remove the security context associated with files"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">Edit \/etc\/sysconfig\/selinux and set SELINUX=disabled<\/p>\n<p>Reboot the machine and login as root <\/p>\n<p>Then from the root folder run the following command<\/p>\n<pre style=\"background-color: black; color: white;\">find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Edit \/etc\/sysconfig\/selinux and set SELINUX=disabled Reboot the machine and login as root Then from the root folder run the following command find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,33,30,32],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-linux","category-security","category-selinux","category-unix","entry entry-center"],"_links":{"self":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23"}],"version-history":[{"count":1,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/23\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.srivittal.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}