Changing the Root Password in Linux

Changing the Root Password in Linux

In case anyone was wondering this is how you change the root password in linux. (If you didn’t know, don’t worry, I wrote this tutorial because someone (guess who) didn’t know 🙂 )

If you are root:

							
							
					passwd				
			

This will prompt you for the new password and then prompt you to confirm it. 

If you aren’t root but have sudo privileges:

							
							
					sudo passwd root				
			

This also will prompt you for the new password and then prompt you to confirm it. 

That’s a wrap! 

Walter Miely is a tech entrepreneur and CEO of Phoenix Ignited Tech You can find him on Linkedin. This material is licensed under the CC BY 4.0 License LEGAL DISCLAIMER: The content provided here is provided AS IS, and part of, or the entirety of this content may be incorrect. Please read the entireLegal Disclaimer here.