You are not logged in.

#1 2009-10-01 14:52:17

Inc.ognitO
Member
From: Ukraine
Registered: 2009-10-01
Posts: 9

root's password recovery

After update I have lost my password. I tried to recover, with getting additional command to kernel - init=/bin/bash, but after this my keyboard.  does not working. any ideas about this?? Maybe I can recover password in another way?


Amount of experience grows in direct proportion of the broken equipment (:

Offline

#2 2009-10-01 15:02:06

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: root's password recovery

Boot from liveCD, chroot into your system and change your password.


what goes up must come down

Offline

#3 2009-10-01 15:07:01

brenix
Member
From: California
Registered: 2008-03-05
Posts: 185

Re: root's password recovery

Go here for what brazzmonkey said. It's a knoppix guide, but your doing the same thing. Or you could run Kon Boot and bypass it tongue

Offline

#4 2009-10-01 16:54:20

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: root's password recovery

chrooting isn't necessary but it will get the job done.  If I do this I just erase the password from /etc/shadow.  Load a livecd... or another linux install, start vim 'sudo vim /etc/shadow', then go to the root line and navigate to the first character after the colon, then type:

d/:/

Hit enter and that will erase the password.  Reboot, login to root from console, then change the password.

Last edited by Gen2ly (2009-10-01 16:55:08)


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#5 2009-10-01 16:57:01

ozar
Member
From: USA
Registered: 2005-02-18
Posts: 1,686

Re: root's password recovery

You can't really "recover" your root password... but you can "reset" it.


oz

Offline

Board footer

Powered by FluxBB