<?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/"
	xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>change root password centos 8 &#8211; RACKSET</title>
	<atom:link href="https://rackset.com/tag/change-root-password-centos-8/feed" rel="self" type="application/rss+xml" />
	<link>https://rackset.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Jan 2026 14:56:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://rackset.com/wp-content/uploads/2025/01/cropped-Rackset-logo-512-32x32.png</url>
	<title>change root password centos 8 &#8211; RACKSET</title>
	<link>https://rackset.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Change Root Password on CentOS</title>
		<link>https://rackset.com/learn/server/how-to-change-root-password-on-centos</link>
					<comments>https://rackset.com/learn/server/how-to-change-root-password-on-centos#respond</comments>
		
		<dc:creator><![CDATA[rackset]]></dc:creator>
		<pubDate>Mon, 26 Dec 2022 05:58:46 +0000</pubDate>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[centos 7 root password default]]></category>
		<category><![CDATA[centos linux change password]]></category>
		<category><![CDATA[change password centos 7]]></category>
		<category><![CDATA[change password centos 8]]></category>
		<category><![CDATA[change root password centos 8]]></category>
		<guid isPermaLink="false">https://rackset.com/?post_type=blog&#038;p=6891</guid>

					<description><![CDATA[Hackers have become advanced in recent years, forcing users to devise secure unique, complex, and unique passwords. The drawback of these passwords is that they&#8217;re difficult to remember, and one could easily forget their passwords. It is also possible to forget your password if you haven&#8217;t checked in for an extended period of time. In [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Hackers have become advanced in recent years, forcing users to devise secure unique, complex, and unique passwords. The drawback of these passwords is that they&#8217;re difficult to remember, and one could easily forget their passwords. It is also possible to forget your password if you haven&#8217;t checked in for an extended period of time.</p>
<p>In this guide, we’ll discuss how to change a password in CentOS 7 and 8 as well as the <strong>CentOS 7 root password in default</strong> when you <strong><a href="https://rackset.com/server/linux" target="_blank" rel="noopener">buy Linux VPS Server</a></strong>.</p>
<p>&nbsp;</p>
<h2>Change Root Password on CentOS 8</h2>
<p>If you&#8217;ve forgotten your password, even after trying many times to recall the password you used to use, you&#8217;re still unable to remember it. Don’t panic. You can easily reset the password even if you just <strong><a href="https://rackset.com/server/linux" target="_blank" rel="noopener">buy Linux VPS</a></strong>; you can reset your root password by using the Boot menu of GRUB. To reset or <strong>change password in CentOS 8</strong>, specifically your root use. Simply reboot the device.</p>
<p>After the system has restarted, click the &#8220;ESC&#8221; key immediately to end the booting process.</p>
<p>Choose the kernel from the GRUB/Boot menu which you want to boot using the arrow keys.</p>
<p>The &#8216;e&#8217; button on your keyboard will pull up the editing menu.</p>
<p>In the editing menu, locate the &#8220;ro&#8221; kernel parameter and replace it with &#8220;rw,&#8221; and add an additional parameter &#8220;init=/sysroot/bin/sh&#8221;:</p>
<p>Use Ctrl + the X key to enter the single-user mode after you have finished with the previous step.</p>
<p>Then, run your &#8220;chroot /sysroot&#8221; command to change your root system file into both write and read mode.</p>
<p>Now you will be able to change the root password.</p>
<p>To change the password for root, type the following command:</p>
<div style="width: 100%; text-align: left; float: left; padding: 1% 1%; border-left: 6px solid #fc1c03; background-color: #ffe6e3;">Passwd root</div>
<p>Then, you will be required to enter a new password and confirm it. It is recommended to choose a unique, complex and intricate password that is simple to remember.</p>
<p>The next step would be to begin SELinux relabelling. To initiate the relabeling of SELinux, follow the command:</p>
<div style="width: 100%; text-align: left; float: left; padding: 1% 1%; border-left: 6px solid #fc1c03; background-color: #ffe6e3;">Touch /.autorelabel</div>
<p>After changing the label, you can use these commands to store and apply the modifications:</p>
<div style="width: 100%; text-align: left; float: left; padding: 1% 1%; border-left: 6px solid #fc1c03; background-color: #ffe6e3;">exit</div>
<p>That’s how to change root password in CentOS 8. Now all you have to do is to restart the system by typing the “reboot” command into the terminal.</p>
<p>It may be necessary to wait for a few minutes for the SELinux relabelling process to finish.</p>
<p>Once the system is up and running again, you will get a window asking for root password.</p>
<p>&nbsp;</p>
<h2>Change Password in CentOS 7 from Terminal</h2>
<p>If you are looking to change your password for root or have forgotten the current password, you don&#8217;t required to perform anything complicated, like the method we mentioned above. Simply open the CentOS 8 terminal and type the following command:</p>
<div style="width: 100%; text-align: left; float: left; padding: 1% 1%; border-left: 6px solid #fc1c03; background-color: #ffe6e3;">Sudo passwd root</div>
<p>If you&#8217;re logged in with the root username, you&#8217;ll be asked to enter and confirm your new password.</p>
<p>If you&#8217;re logged in as a regular user with Sudo privileges, you&#8217;ll be asked to enter the password you are currently using as well as the new password.</p>
<p>After successfully resetting your password for root, you need to sign in using the new password set as a root user. And that is how you would change root password in CentOS 7 and 8 using the terminal, if you were contemplating whether you should <a href="https://rackset.com/server/vps-server/" target="_blank" rel="noopener"><strong>buy a CentOS server</strong></a> or not just because it is hard to work with, don’t. Linux in general is one of the coolest OS you can find and with many guides around, you are almost guaranteed to learn a thing or two and troubleshoot yourself.</p>
<p>&nbsp;</p>
<h2>Conclusion</h2>
<p>In this guide of <strong>CentOS Linux change password</strong> we discussed how you would change a password from GRUB/Boot menu as well as the terminal. After you claim your Linux VPS server, remember to change your password in order to improve your server security.</p>
<div class="blogbutton"><a href="https://rackset.com/server/linux" target="_blank" rel="noopener">Buy Linux VPS Server</a></div>
]]></content:encoded>
					
					<wfw:commentRss>https://rackset.com/learn/server/how-to-change-root-password-on-centos/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
