Change root password on RedHat Enterprise Linux 5.3

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?
KRZA30Asked:
Who is Participating?
 
PsiCopConnect With a Mentor Commented:
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
 
farzanjCommented:
If you can logon
Enter the command

passwd

Enter the passwd twice
0
 
farzanjCommented:
This would work too without typing password twice
echo "NewPassWord" | passwd --stdin root

Open in new window

0
 
farzanjCommented:
You need to be root before you may be able to do it
0
 
farzanjCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.