- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Password Recovery
Operating System - Linux
1819802
Members
3042
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2002 08:26 AM
тАО03-02-2002 08:26 AM
Password Recovery
This is my first experience with Linux and I just started this job as IT / Systems Manager. I discovered that I have an external ( register )DNS server on a Linux REDHAT 7.0 platform. Unfortunately the previous systems manager didn't have any documentation. I need to know how to recover the root password without re-installing ? Does anybody have a suggestion....Thanks in advance....
Always finding a solution to a problem
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2002 12:31 PM
тАО03-02-2002 12:31 PM
Re: Password Recovery
Hello,
Here are 3 methods :
1. The easiest one : reboot your system in single-user mode, cancel the root password, and reboot normally to set another one.
To boot single-user, at LILO prompt type "linux s".
Some Linux distributions require root password to enter single-user. If it is your case, try the second method.
2. The most difficult one : reboot your system with a recovery CD-Rom or disk, mount the root filesystem and cancel the password.
It is not so difficult, but you need some Linux expertise. Just to summarize : boot on the Install CD just as if you wanted to re-install, go through the steps until keyboard and language selection, then type CTRL-ALT-F2 to open a shell.
Then :
mkdir /new
mount /dev/your_root_partition /new
/new/usr/bin/vi /new/etc/passwd
Clear the password field.
Then, umount the root partition :
umount /new
To reboot : remove the install CD-Rom and/or floppy, then CTRL-ALT-DEL.
After reboot, don't forget to set a new root password.
Good luck.
Kodjo
Here are 3 methods :
1. The easiest one : reboot your system in single-user mode, cancel the root password, and reboot normally to set another one.
To boot single-user, at LILO prompt type "linux s".
Some Linux distributions require root password to enter single-user. If it is your case, try the second method.
2. The most difficult one : reboot your system with a recovery CD-Rom or disk, mount the root filesystem and cancel the password.
It is not so difficult, but you need some Linux expertise. Just to summarize : boot on the Install CD just as if you wanted to re-install, go through the steps until keyboard and language selection, then type CTRL-ALT-F2 to open a shell.
Then :
mkdir /new
mount /dev/your_root_partition /new
/new/usr/bin/vi /new/etc/passwd
Clear the password field.
Then, umount the root partition :
umount /new
To reboot : remove the install CD-Rom and/or floppy, then CTRL-ALT-DEL.
After reboot, don't forget to set a new root password.
Good luck.
Kodjo
Learn and explain...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-04-2002 09:53 AM
тАО03-04-2002 09:53 AM
Re: Password Recovery
Single user mode is the best way.
If you have a rescue floppy this is no problem.
You cannot recover the password but can change it.
You'll get a login without a prompt.
As a security note, password protect your bios (and don't forget it) and lock your box so you can't jumpt the BIOS paasword (and don't lose the key)
;)
Later,
Bill
If you have a rescue floppy this is no problem.
You cannot recover the password but can change it.
You'll get a login without a prompt.
As a security note, password protect your bios (and don't forget it) and lock your box so you can't jumpt the BIOS paasword (and don't lose the key)
;)
Later,
Bill
It works for me (tm)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2002 08:17 PM
тАО03-11-2002 08:17 PM
Re: Password Recovery
The easiest way is to boot into single user mode by feeding lilo "linux single". Once you're in single user mode, simply change the password just as you would any other time (assuming your root password is local... and it should be!)
If there is a lilo boot password set, you'll have to go around lilo. I recommend booting to the installation CD and typing "linux rescue" at the prompt. This will boot your system into a command-line recovery shell. It should also mount your old filesystem. The output that is given during boot should be enough to get you on your way.
If there is a BIOS password set, look up the motherboard specs online, crack open the case, and short the cmos reset pins to wipe out the old password.
Hope this helps. :-)
If there is a lilo boot password set, you'll have to go around lilo. I recommend booting to the installation CD and typing "linux rescue" at the prompt. This will boot your system into a command-line recovery shell. It should also mount your old filesystem. The output that is given during boot should be enough to get you on your way.
If there is a BIOS password set, look up the motherboard specs online, crack open the case, and short the cmos reset pins to wipe out the old password.
Hope this helps. :-)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP