Solved

Change root password on RedHat Enterprise Linux 5.3

Posted on 2011-03-08
5
846 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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 …
Fine Tune your automatic Updates for Ubuntu / Debian

735 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