Lost CentOS 3.7 login and password

Support for security such as Firewalls and securing linux
Post Reply
beadlestoo
Posts: 1
Joined: 2006/12/26 19:59:02

Lost CentOS 3.7 login and password

Post by beadlestoo » 2006/12/26 20:09:18

I recently purchased a used Dell Edgepower 6300 server system for my personal business webserver. I had a friend of mine build the server. The version of CentOS is definatly 3.7. He has since moved out of the country and is no longer available to tell me the ns0 login name or the password. He did not leave any install disks. He set up the rest of my office computers but the regular login/passwords do not work. I have also tried conventional password crackers but those have failed as they are all windows based. The only other option I have now is to wipe the entire raid drives. I do not want to do that. Is there any way to get the login and password back?

This is my server and it sits in the room next to me. It is currently not hooked up to the internet.

NedSlider
Forum Moderator
Posts: 2890
Joined: 2005/10/28 13:11:50
Location: UK

Lost CentOS 3.7 login and password

Post by NedSlider » 2006/12/27 01:50:19

I'm not sure what you man by the ns0 logi/password, but you an reset the root password by booting to runlevel 1:

To recover lost root password using GRUB boot loader:

1. Boot the affected system to the GRUB loader
2. Select your operating system and type E for edit
3. Select kernel and type E for edit
4. Select boot and add runlevel 1 to the end of the line
5. Press Enter and hit B for boot
6. At the sh prompt, use passwd to change the password
7. Reboot the PC

Or, if by some strange chance you have lilo for your boot loader:

To recover lost root password using LILO boot loader:

1. Boot the machine to the LILO prompt
2. Type linux 1 or linux single to enter single user mode
3. At the prompt, use passwd to change the password
4. Reboot

Then you should be able to login as root with your new password and change passwords for other accounts as needed.

Hope that helps

Post Reply

Return to “CentOS 4 - Security Support”