SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear Sir,
One of my friend has changed the root password of my system and I am unable to login as root I am using Suse 9 which uses GRUB Loader. I have edited the Kernel by adding 'single' at the end. Yet it is asking root password after loading.
I am new to Linux. Could any one help me from this.
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.
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.
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".
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. . 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 reply.
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)
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 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.
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
Last edited by HenchmenResourc; 02-05-2005 at 04:24 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:
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.
Originally posted by mikedeatworld knoppix is your friend...
Where can i get knoppix. I think i can download knoppix. If I download, how can i boot from it. If I have to write it into CD, i don't have CD Writer. Help me my friend.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.