• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 866
  • Last Modified:

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?
0
KRZA30
Asked:
KRZA30
  • 4
1 Solution
 
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
 
PsiCopCommented:
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:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now