Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

If I forget the root password

Posted on 1999-07-05
1
Medium Priority
?
338 Views
Last Modified: 2010-04-20
How I could know the root password if I forget it ( Using RedHat 5.2 ) or at least login to the system to change it????
0
Comment
Question by:HeroPlus
[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
1 Comment
 

Accepted Solution

by:
bahdb0yy earned 400 total points
ID: 1635006
It is impossible to know the root password, since this root password iis, like all other passwords on your Linux box, stored in the /etc/password or /etc/shadow file, using the crypt(); function, which only has the possibility to crypt and store and to check if a password matches.

Decryption is not available because of obvious security reasons.

It is possible to change the root password of your box however by booting into single user mode (kernel option -s, ie. If your boot-configuration boots 'linux' as default, booting into single-user mide would be done by typeing 'linux -s' at your LILO prompt.

The system will put you in a root prompt on the console, where you can do anything including the 'passwd' command, do set your password.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

704 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