Categories
Welcome Center
Education & Development
Discussions
Certification Preparation
Recent Posts
Groups
Free Resources
Ebooks
Free Workshops
Trending Certifications Infographic
Infosec Training
IT & Security Training
Live Boot Camps
Security Awareness Training
About Infosec Institute
Home
Discussions
Off Topic
RHEL 6 - Root Password Change (How To)
Bjcheung77
Hello,
I have a question in regards to the Root password reset. How does a newbie do it?
I'm trying to change the password and there's no "icon" for that.
When I go into terminal, it says I need to be logged into root.
Isn't the main account that I created, the root account?
Thank you,
Find more posts tagged with
Save $250 on 2025 certification boot camps from Infosec!
Book now with code EOY2025
Button
Comments
alias454
In a terminal type
sudo passwd root
and enter your current password when prompted.
phatrik
Type the command in a terminal exactly as alias454 typed it in bold and you'll be on your way to change root's password. Just to elaborate a little bit on what's going on here:
"Isn't the main account that I created, the root account?"
When installing RHEL (or one of its clones such as CentOS), you'll be asked to provide a password for the root account and to optionally create a second account. When creating that second account, you have the possibility of making it an administrator account. Making the account an administrator account means the user will be added to a group called 'wheel', therefore authorizing the account you just created to use 'sudo'. Prefixing any commands with 'sudo' is the equivalent of 'Run as administrator' on a Windows OS. If you don't add 'sudo' in front of the commands you're running they're run as a regular user (the user you're logged in as).
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of
INFOSEC Boot Camps
$250
OFF
Use code
EOY2025
to receive $250 off your 2025 certification boot camp!
BROWSE BOOT CAMPS