Solved

Change root password on RedHat Enterprise Linux 5.3

Posted on 2011-03-08
5
850 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
Fine Tune your automatic Updates for Ubuntu / Debian
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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