<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RHEL7 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/rhel7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 10 Jan 2018 12:57:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Reset Root Password On CentOS7 and RHEL7</title>
		<link>https://www.osradar.com/how-to-reset-root-password-on-centos7-and-rhel7/</link>
					<comments>https://www.osradar.com/how-to-reset-root-password-on-centos7-and-rhel7/#respond</comments>
		
		<dc:creator><![CDATA[Mel K]]></dc:creator>
		<pubDate>Thu, 28 Dec 2017 09:38:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Foget password]]></category>
		<category><![CDATA[Forget centos password]]></category>
		<category><![CDATA[RHEL7]]></category>
		<guid isPermaLink="false">http://osradar.com/?p=642</guid>

					<description><![CDATA[<p>One of the worst cases in Linux is when you forget your root password and you have no  users with  root sudo privileges to recover the admin password. let me tel you that can be happen even in the big IT companies . No worry, there is always a solution to reset new password for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-reset-root-password-on-centos7-and-rhel7/">How To Reset Root Password On CentOS7 and RHEL7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>One of the worst cases in Linux is when you forget your root password and you have no  users with  root sudo privileges to recover the admin password. let me tel you that can be happen even in the big IT companies .</p>
<p>No worry, there is always a solution to reset new password for your Server.</p>
<h6><strong>1-Boot menu</strong></h6>
<p>On the Grub boor menu , please select last kenel installed, and press  &lt;e&gt;  to Edit</p>
<p><img loading="lazy" class="alignnone wp-image-645 size-full" src="http://osradar.com/wp-content/uploads/2017/12/res1.png" alt="" width="698" height="360" srcset="https://www.osradar.com/wp-content/uploads/2017/12/res1.png 698w, https://www.osradar.com/wp-content/uploads/2017/12/res1-300x155.png 300w, https://www.osradar.com/wp-content/uploads/2017/12/res1-696x360.png 696w" sizes="(max-width: 698px) 100vw, 698px" /></p>
<h6><strong>2- Change boot Settings :</strong></h6>
<p>Please find line starting with linux16 and find  string <span style="color: #ff0000;">ro</span></p>
<p><img loading="lazy" class="alignnone wp-image-646 size-full" src="http://osradar.com/wp-content/uploads/2017/12/res2.png" alt="" width="720" height="303" srcset="https://www.osradar.com/wp-content/uploads/2017/12/res2.png 720w, https://www.osradar.com/wp-content/uploads/2017/12/res2-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2017/12/res2-696x293.png 696w" sizes="(max-width: 720px) 100vw, 720px" /></p>
<h6><strong>3- change  ro to  rw init=/sysroot/bin/sh. </strong></h6>
<p>&nbsp;</p>
<p><img loading="lazy" class="alignnone wp-image-647 size-full" src="http://osradar.com/wp-content/uploads/2017/12/res3.png" alt="" width="732" height="339" srcset="https://www.osradar.com/wp-content/uploads/2017/12/res3.png 732w, https://www.osradar.com/wp-content/uploads/2017/12/res3-300x139.png 300w, https://www.osradar.com/wp-content/uploads/2017/12/res3-696x322.png 696w" sizes="(max-width: 732px) 100vw, 732px" /></p>
<h6><strong>4-Control+X to start machine in Emergency Shell</strong></h6>
<p><img loading="lazy" class="alignnone size-full wp-image-649" src="http://osradar.com/wp-content/uploads/2017/12/res4.png" alt="" width="716" height="194" srcset="https://www.osradar.com/wp-content/uploads/2017/12/res4.png 716w, https://www.osradar.com/wp-content/uploads/2017/12/res4-300x81.png 300w, https://www.osradar.com/wp-content/uploads/2017/12/res4-696x189.png 696w" sizes="(max-width: 716px) 100vw, 716px" /></p>
<p><strong>5 – Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree<br />
</strong></p>
<pre class="">chroot /sysroot</pre>
<h6><strong>6 –Now you can Reset the password.</strong></h6>
<pre>passwd root</pre>
<h6><strong>7 – Update selinux information to make this permanent<br />
</strong></h6>
<pre>touch /.autorelabel</pre>
<h6><strong>8 – Exit chroot</strong></h6>
<pre class="">exit</pre>
<p><strong>9 – Reboot your system with command reboot<br />
</strong></p>
<pre class="">reboot</pre>
<h6><strong>10- Enjoy the New password :</strong></h6>
<p><img loading="lazy" class="alignnone size-full wp-image-650" src="http://osradar.com/wp-content/uploads/2017/12/res5.png" alt="" width="722" height="190" srcset="https://www.osradar.com/wp-content/uploads/2017/12/res5.png 722w, https://www.osradar.com/wp-content/uploads/2017/12/res5-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2017/12/res5-696x183.png 696w" sizes="(max-width: 722px) 100vw, 722px" /></p>
<p>Cheers!!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-reset-root-password-on-centos7-and-rhel7/">How To Reset Root Password On CentOS7 and RHEL7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-reset-root-password-on-centos7-and-rhel7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
