Solved

Change root password on RedHat Enterprise Linux 5.3

Posted on 2011-03-08
5
838 Views
Last Modified: 2012-05-11
I need to change the root password on my Enterprise RedHat Linux 5.3.  It is still set to the abc123.  Can someone please assist on how to do this from terminal?
0
Comment
Question by:KRZA30
  • 4
5 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 35076053
If you can logon
Enter the command

passwd

Enter the passwd twice
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35076068
This would work too without typing password twice
echo "NewPassWord" | passwd --stdin root

Open in new window

0
 
LVL 31

Expert Comment

by:farzanj
ID: 35076075
You need to be root before you may be able to do it
0
 
LVL 34

Accepted Solution

by:
PsiCop earned 500 total points
ID: 35076112
1) Login as root

2) At the command prompt, type passwd and press ENTER

3) You will be prompted for the current password; enter it

4) You will be prompted for your new password; enter it

5) You will be again prompted for your new password; enter it
0
 
LVL 31

Expert Comment

by:farzanj
ID: 35076147
When you enter as root, you are not asked for your current password.  You just have to enter the command passwd, enter the new password twice and bingo, you are done.


If you don't want to enter twice, use the second method I stated above
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello EE, Today we will learn how to send all your network traffic through Tor which is useful to get around censorship and being tracked all together to a certain degree. This article assumes you will be using Linux, have a minimal knowledge of …
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question