LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Lost root password (https://www.linuxquestions.org/questions/suse-opensuse-60/lost-root-password-286442/)

amirdhagopal 02-05-2005 12:00 AM

Lost root password
 
Dear Sir,
One of my friend has changed :eek: the root password of my system and I am unable :( to login as root :scratch: I am using Suse 9 which uses GRUB Loader. I have edited :study: the Kernel by adding 'single' at the end. Yet :cry: it is asking root password after loading. :confused:
I am new :newbie: to Linux. Could any one help me from this. :rolleyes:

dylbyrt45 02-05-2005 01:04 AM

Google is your friend. So is the search engine here. A google on "lost root password" returned 1,240,00 results. One of those should be helpful. :D

student04 02-05-2005 02:12 AM

Welcome to LinuxQuestions.org!

When you boot up your computer, do you see any options to select?

If so, you need to select "failsafe" which will put you automatically into a root console, where you can change the password with the "passwd" command.

amirdhagopal 02-05-2005 03:36 AM

Quote:

Originally posted by dylbyrt45
Google is your friend. So is the search engine here. A google on "lost root password" returned 1,240,00 results. One of those should be helpful. :D

Google is already my friend. I would like to correct ur reply.
It gave 1,350,000 results for Lost Root Password and
gave 4,640 results for "Lost Root Password".

Thanks for reply to my msg.:D

amirdhagopal 02-05-2005 04:15 AM

Quote:

Originally posted by student04
Welcome to LinuxQuestions.org!

When you boot up your computer, do you see any options to select?

If so, you need to select "failsafe" which will put you automatically into a root console, where you can change the password with the "passwd" command.



Yes, i am seeing options to select. :) I selected "Failsafe". ;) . But it is ending at the login prompt. :o . I am able to login into my user login.;) But i couldn't enter into root. :o . I couldn't give root password, since i lost :cry: my password. I don't know what to do?:scratch: Kindly suggest any more ways :jawa: to this new bie.:newbie:
Thanks for ur kind considerable :cool: reply.

doc.nice 02-05-2005 07:00 AM

well, if you can boot from a cdrom, you could boot knoppix or maybe the first suse cd to get an root linux promt, then chroot to your linux harddisk partition and execute passwd

if that fails, try editing your /etc/shadow to set the root passwd to a known string (create this using md5)

noestr 02-05-2005 09:02 AM

Hi

Enter single user mode by typing 'linux single' at the boot prompt.

then use the 'passwd root' command to change the password.

Robert

student04 02-05-2005 02:55 PM

Quote:

Originally posted by amirdhagopal
Yes, i am seeing options to select. I selected "Failsafe". . But it is ending at the login prompt. . I am able to login into my user login. But i couldn't enter into root. . I couldn't give root password, since i lost my password. I don't know what to do? Kindly suggest any more ways to this new bie.
Thanks for ur kind considerable :cool: reply.

failsafe should not bring you to a login, but an immediate terminal prompt, so that doesn't seem to make sense to me...

You could boot with knoppix, mount the drive, chroot to it, and then change the password that way... but i've never done it, just know that it would work.

:scratch:

HenchmenResourc 02-05-2005 04:09 PM

Put you SuSE CD in and boot from it as if you were doing an install. then chose to updat your system rather than doing a new install, add a program to your installation then accept, the YaST installer will add the selected program then will go through some basic setup questions and at the end it will ask you to input a new root password. when your done you should be boot up SuSE and everything should be the same except the one added program and a new working root password.

ADDITIONAL: because of this feature when your done you should go into your computers BIOS and turn off the ability to boot from your optical drive/s

gd2shoe 02-05-2005 08:37 PM

Failsafe means different things in different systems, even different linux systems.

If you cannot solve this from the SuSE install CD (you should be able to), then use a live CD like knoppix to edit the shadow file. Look for the root line, and alter it like so:
Code:

root:$2a$05$YB/iuyn/cjYX7fRpspxDwOw6v73sVsCwkWwmeT4ifxc1r.sdAqmaG:12820:0:99999:7:::

root::12820:0:99999:7:::

This is a colon separated list. The random garbage that you see is actually your pasword hash. Get rid of it and it should let you log in with a blank password.

(This is not my real root entry by the way...:))

mikedeatworld 02-07-2005 06:22 PM

knoppix is your friend...

student04 02-07-2005 06:36 PM

Quote:

Originally posted by gd2shoe
Failsafe means different things in different systems, even different linux systems.
Really? I didn't know that... maybe it's because i've been used to mandrake for so long :p

amirdhagopal 02-09-2005 11:31 PM

Quote:

Originally posted by mikedeatworld
knoppix is your friend...

Where can i get knoppix. :rolleyes: I think i can download knoppix.:p If I download, how can i boot from it.:eek: If I have to write it into CD, i don't have CD Writer.:cry: Help me my friend. :Pengy:

student04 02-10-2005 12:09 AM

www.knoppix.org is their site

yes you have to burn it to a cd, though you could order one off of the internet, too


All times are GMT -5. The time now is 04:53 AM.