RHEL 5 Root Password Change

Posted on 2008-11-13
Last Modified: 2013-12-16
I am running Red Hat Enterprise Linux 5.0 and need to change the root password via command line.  How do I do this?
Question by:deklinm
    LVL 40

    Accepted Solution

    after login as root and from command line run

    LVL 5

    Expert Comment

    If you have lost the password, you should reboot the system. During Grub splashscreen press ESC to stop the counter, select the right entry (it should be the top most), press e to edit and append a 1 to the kernel line. Now press b to boot. You should reach the prompt, type passwd to change the root password and then reboot.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now