<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: How to Disable SELinux Temporarily or Permanently	</title>
	<atom:link href="https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 02 Oct 2025 04:43:40 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-2347240</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Thu, 02 Oct 2025 04:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=21589#comment-2347240</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-2347023&quot;&gt;col&lt;/a&gt;.

@Col,

Sounds like something got corrupted — &lt;code&gt;rc.sysinit&lt;/code&gt; is from the old &lt;strong&gt;SysV&lt;/strong&gt; days, so if it “&lt;strong&gt;disappeared&lt;/strong&gt;” it’s probably not what’s actually breaking things. The real issue is &lt;code&gt;initrd.service:&lt;/code&gt; that file isn’t hand-written, it’s generated when the &lt;strong&gt;initramfs&lt;/strong&gt; is built.

Fix is usually: boot from a live USB, chroot into your system, and rebuild the initramfs (&lt;code&gt;dracut -f&lt;/code&gt; on Fedora/RHEL, &lt;code&gt;mkinitcpio -P&lt;/code&gt; on Arch, etc.). Also make sure &lt;strong&gt;systemd&lt;/strong&gt; is still installed — reinstalling it from the rescue environment will restore the missing init binary.

No internet makes it harder, but with the install media you can usually recover.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-2347023">col</a>.</p>
<p>@Col,</p>
<p>Sounds like something got corrupted — <code>rc.sysinit</code> is from the old <strong>SysV</strong> days, so if it “<strong>disappeared</strong>” it’s probably not what’s actually breaking things. The real issue is <code>initrd.service:</code> that file isn’t hand-written, it’s generated when the <strong>initramfs</strong> is built.</p>
<p>Fix is usually: boot from a live USB, chroot into your system, and rebuild the initramfs (<code>dracut -f</code> on Fedora/RHEL, <code>mkinitcpio -P</code> on Arch, etc.). Also make sure <strong>systemd</strong> is still installed — reinstalling it from the rescue environment will restore the missing init binary.</p>
<p>No internet makes it harder, but with the install media you can usually recover.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: col		</title>
		<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-2347023</link>

		<dc:creator><![CDATA[col]]></dc:creator>
		<pubDate>Wed, 01 Oct 2025 11:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=21589#comment-2347023</guid>

					<description><![CDATA[Thanks, Aaron, it seems pretty easy to do.

Just a shot in the dark: I had my system running at about 50% capability for two days, and then, my system removed the info in &lt;code&gt;rc.sysinit&lt;/code&gt;.

Even worse, it completely removed the &lt;code&gt;initrd.service&lt;/code&gt; unit. 

It no longer works.
&lt;pre&gt;
[Unit]  
[Service]  
[Install]  
&lt;/pre&gt;
Do you happen to know what normally goes into that unit?

Right now it won’t boot to &lt;strong&gt;systemd&lt;/strong&gt;, so I can’t use all the usual tools (like &lt;strong&gt;systemctl dependencies&lt;/strong&gt; or &lt;strong&gt;unit names&lt;/strong&gt;) to fix things. &lt;strong&gt;init&lt;/strong&gt; is also gone, and I can’t find an alternative init to spawn.

No internet access on this system either, since I’m trying to fix it offline.

No harm in asking.]]></description>
			<content:encoded><![CDATA[<p>Thanks, Aaron, it seems pretty easy to do.</p>
<p>Just a shot in the dark: I had my system running at about 50% capability for two days, and then, my system removed the info in <code>rc.sysinit</code>.</p>
<p>Even worse, it completely removed the <code>initrd.service</code> unit. </p>
<p>It no longer works.</p>
<pre>
[Unit]  
[Service]  
[Install]  
</pre>
<p>Do you happen to know what normally goes into that unit?</p>
<p>Right now it won’t boot to <strong>systemd</strong>, so I can’t use all the usual tools (like <strong>systemctl dependencies</strong> or <strong>unit names</strong>) to fix things. <strong>init</strong> is also gone, and I can’t find an alternative init to spawn.</p>
<p>No internet access on this system either, since I’m trying to fix it offline.</p>
<p>No harm in asking.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JB		</title>
		<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-2196481</link>

		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Tue, 30 Jul 2024 03:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=21589#comment-2196481</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1970440&quot;&gt;Cliff&lt;/a&gt;.

SELinux is an abomination. It&#039;s a set of cryptic commands with overlapping, inconsistent effects. Shut it off and hope for the day it gets replaced with something that is actually easy to use.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1970440">Cliff</a>.</p>
<p>SELinux is an abomination. It&#8217;s a set of cryptic commands with overlapping, inconsistent effects. Shut it off and hope for the day it gets replaced with something that is actually easy to use.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Cliff		</title>
		<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1970440</link>

		<dc:creator><![CDATA[Cliff]]></dc:creator>
		<pubDate>Wed, 22 Feb 2023 12:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=21589#comment-1970440</guid>

					<description><![CDATA[You should take this article and all like it down! You might as well tell your readers to remove their perimeter firewalls down, uninstall their Anti-Virus on Windows, etc.

&lt;strong&gt;SELinux&lt;/strong&gt; is NOT that hard to use and configure. If fact, if you just follow some basic SELinux rules, like keeping all your web server content in &lt;strong&gt;/var/www&lt;/strong&gt; you won&#039;t have any issues. 

If you are having an issue use the tools that are given like &lt;strong&gt;audit2why&lt;/strong&gt; and &lt;strong&gt;audit2allow&lt;/strong&gt;. Using &lt;strong&gt;audit2allow&lt;/strong&gt; will fix 99.99999% of your SELinux issues. f you have lots of violations switch to permissive mode (better on a test Machine) and dig through the logs. That&#039;s what competence administrators do!

Advising people to disable SELinux is as stupid as advising them to &quot;just make the user a local administrator, and they will fix it.&quot; on a Windows computer.]]></description>
			<content:encoded><![CDATA[<p>You should take this article and all like it down! You might as well tell your readers to remove their perimeter firewalls down, uninstall their Anti-Virus on Windows, etc.</p>
<p><strong>SELinux</strong> is NOT that hard to use and configure. If fact, if you just follow some basic SELinux rules, like keeping all your web server content in <strong>/var/www</strong> you won&#8217;t have any issues. </p>
<p>If you are having an issue use the tools that are given like <strong>audit2why</strong> and <strong>audit2allow</strong>. Using <strong>audit2allow</strong> will fix 99.99999% of your SELinux issues. f you have lots of violations switch to permissive mode (better on a test Machine) and dig through the logs. That&#8217;s what competence administrators do!</p>
<p>Advising people to disable SELinux is as stupid as advising them to &#8220;just make the user a local administrator, and they will fix it.&#8221; on a Windows computer.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1859428</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Tue, 09 Aug 2022 05:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=21589#comment-1859428</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1859139&quot;&gt;Jim&lt;/a&gt;.

@Jim,

SELinux is not part of Debian-based distributions, you need to install it.
&lt;pre&gt;
$ sudo apt install selinux selinux-utils selinux-basics auditd audispd-plugins
$ sudo sestatus
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/disable-selinux-in-centos-rhel-fedora/comment-page-1/#comment-1859139">Jim</a>.</p>
<p>@Jim,</p>
<p>SELinux is not part of Debian-based distributions, you need to install it.</p>
<pre>
$ sudo apt install selinux selinux-utils selinux-basics auditd audispd-plugins
$ sudo sestatus
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
