Link to home
Start Free TrialLog in
Avatar of KRZA30
KRZA30Flag for United States of America

asked on

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?
Avatar of farzanj
farzanj
Flag of Canada image

If you can logon
Enter the command

passwd

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

Open in new window

You need to be root before you may be able to do it
ASKER CERTIFIED SOLUTION
Avatar of PsiCop
PsiCop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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