<?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: Single User Mode: Resetting/Recovering Forgotten Root User Account Password in RHEL/CentOS 7	</title>
	<atom:link href="https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Mon, 27 Jul 2020 13:04:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Bob O'shea		</title>
		<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1348095</link>

		<dc:creator><![CDATA[Bob O'shea]]></dc:creator>
		<pubDate>Mon, 27 Jul 2020 13:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12095#comment-1348095</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1329460&quot;&gt;Rudra M&lt;/a&gt;.

Try running the command &quot;&lt;code&gt;authconfig --updateall&lt;/code&gt;&quot; at root shell in single/maintenance/emergency mode.  Should fix the issue]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1329460">Rudra M</a>.</p>
<p>Try running the command &#8220;<code>authconfig --updateall</code>&#8221; at root shell in single/maintenance/emergency mode.  Should fix the issue</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bob O'shea		</title>
		<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1348094</link>

		<dc:creator><![CDATA[Bob O'shea]]></dc:creator>
		<pubDate>Mon, 27 Jul 2020 13:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12095#comment-1348094</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347405&quot;&gt;Ravi Saive&lt;/a&gt;.

So I did mount read and write, etc.  But every time I got to reset the password, I would get &quot;&lt;strong&gt;permission denied&lt;/strong&gt;&quot;.  But I finally figured out the fix:  when you get to root shell, run the command &quot;&lt;code&gt;authconfig --updateall&lt;/code&gt;&quot; and all PAM config auth files and other functions that are called up by the &lt;strong&gt;/etc/pam.d/&lt;/strong&gt; config files will be recreated.  

Removing whatever hardened lockdown restriction was applied that locked you out, to begin with.  I wasted 20 hrs working on this stupid issue.  Hope this works for someone else who can&#039;t change the root password in single-user mode or emergency mode.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347405">Ravi Saive</a>.</p>
<p>So I did mount read and write, etc.  But every time I got to reset the password, I would get &#8220;<strong>permission denied</strong>&#8220;.  But I finally figured out the fix:  when you get to root shell, run the command &#8220;<code>authconfig --updateall</code>&#8221; and all PAM config auth files and other functions that are called up by the <strong>/etc/pam.d/</strong> config files will be recreated.  </p>
<p>Removing whatever hardened lockdown restriction was applied that locked you out, to begin with.  I wasted 20 hrs working on this stupid issue.  Hope this works for someone else who can&#8217;t change the root password in single-user mode or emergency mode.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347405</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Sat, 25 Jul 2020 04:39:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12095#comment-1347405</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347254&quot;&gt;Bob O&#039;shea&lt;/a&gt;.

@Bob,

Have you mounted your root filesytem in read/write mode? if not do:
&lt;pre&gt;
# mount -o remount,rw /
&lt;/pre&gt;
Or edit the kernel booting options, change &lt;code&gt;ro init=/sysroot/bin/sh&lt;/code&gt; to &lt;code&gt;rw init=/sysroot/bin/sh&lt;/code&gt; and boot your system and run these commands:
&lt;pre&gt;
chroot /sysroot
passwd root
touch /.autorelabel
reboot
&lt;/pre&gt;
You now should be able to loggin as root user.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347254">Bob O&#8217;shea</a>.</p>
<p>@Bob,</p>
<p>Have you mounted your root filesytem in read/write mode? if not do:</p>
<pre>
# mount -o remount,rw /
</pre>
<p>Or edit the kernel booting options, change <code>ro init=/sysroot/bin/sh</code> to <code>rw init=/sysroot/bin/sh</code> and boot your system and run these commands:</p>
<pre>
chroot /sysroot
passwd root
touch /.autorelabel
reboot
</pre>
<p>You now should be able to loggin as root user.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bob O'shea		</title>
		<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1347254</link>

		<dc:creator><![CDATA[Bob O'shea]]></dc:creator>
		<pubDate>Fri, 24 Jul 2020 15:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12095#comment-1347254</guid>

					<description><![CDATA[After successfully getting into single user mode and getting to root shell, I type command &quot;&lt;strong&gt;passwd&lt;/strong&gt;&quot; to reset the root password and I receive
&lt;pre&gt;
&quot;changing password for user root.&quot;
&quot;passwd: permission denied&quot;
&lt;/pre&gt;
Selinux is disabled, FIPS mode off, I&#039;ve tried to figure out why this is happening to my server all of the sudden and cannot log into it anymore with any account.]]></description>
			<content:encoded><![CDATA[<p>After successfully getting into single user mode and getting to root shell, I type command &#8220;<strong>passwd</strong>&#8221; to reset the root password and I receive</p>
<pre>
"changing password for user root."
"passwd: permission denied"
</pre>
<p>Selinux is disabled, FIPS mode off, I&#8217;ve tried to figure out why this is happening to my server all of the sudden and cannot log into it anymore with any account.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rudra M		</title>
		<link>https://www.tecmint.com/reset-forgotten-root-password-in-centos-7-rhel-7/comment-page-1/#comment-1329460</link>

		<dc:creator><![CDATA[Rudra M]]></dc:creator>
		<pubDate>Fri, 24 Apr 2020 05:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=12095#comment-1329460</guid>

					<description><![CDATA[I have tried above steps but it didn&#039;t work, still not taking a new password that I have set through the above steps. Please suggest how to resolve this?]]></description>
			<content:encoded><![CDATA[<p>I have tried above steps but it didn&#8217;t work, still not taking a new password that I have set through the above steps. Please suggest how to resolve this?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
