LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2003, 06:02 PM   #1
Jadasin
Member
 
Registered: Jul 2001
Location: Ottawa, Canada "no eh!"
Distribution: Woohooo Finally a Slackware Chick, life is good
Posts: 46

Rep: Reputation: 15
How Embarrasing, root password lost need help


Well I wont make excuses for myself, there's just no denying it, I truly am a loser... So I left my place for a few months to go on this snowboarding camp thing and the whole time, ok maybe not the whole time, I couldn't wait to get back to my linux box.

When I get back for the life of me I can't seem to get my root password, it's either I've forgotten it or my box has rebelled at my leaving it for so long and changed the password on it's own.

So either way, this sucks and I'm wondering if anyone knows how or even if it's possible to retrieve and or replace a root password without having that intial access.

Before before I get the "just do a search on google response", , I'll say that I have, I've read alot of stuff about starting the kernel in lilo using somethin like "linux single" and then at prompt typing in passwd root but when I type linux single and shoves me a command line that asks for user and password, so still not good for me. I've just tried to read previous and didn't really find anything so this is what brings me to making a fool of myself and posting a, I lost my password, post... This sucks.

Please any help would be greatly appreciated, you've all come through for me in the past and I hope someone can think of something this time. TIA

OBTW: running Slackware 9.0
Bootloader: Lilo

Anna.
 
Old 09-29-2003, 06:50 PM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you'd need to get into single user mode by
linux 1
at the lilo boot prompt - I'm pretty sure this is the way to do it; I'm sure 'linux single' is not right.. And then do the stuff you read online.
 
Old 09-29-2003, 06:53 PM   #3
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Rep: Reputation: 30
check this:
http://www.joyoftech.com/joyoftech/j...ives/495b.html
 
Old 09-29-2003, 07:18 PM   #4
Jadasin
Member
 
Registered: Jul 2001
Location: Ottawa, Canada "no eh!"
Distribution: Woohooo Finally a Slackware Chick, life is good
Posts: 46

Original Poster
Rep: Reputation: 15
Hey quatsch, thanks for tying, I tried the linux 1 instead of linux single and it basically got me to the exact same place, a prompt with login and password. I know the system is going on runtime level 1, which is single mode right ? But for some reason it wants me to log in as root to be able to do anything, I can get in as a normal user but yeahs that's just not good...

Anyways thanks again for trying, hopefully someone else will think of something, I really don't want to have to reinstall and loosing everything I use to have.

Oh and Nechos, thanks for that, don't know if I feel quite that bad but it may get to that.

Anna
 
Old 09-29-2003, 07:36 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
are you sure you're in single user mode? You should just get a prompt - no log in and no possibility to login as a normal user. Is 'linux' actually the label of your slack installation as it appears in the lilo menu?

Doesn't slackware have a rescue mode that you could start from the installation CD?
 
Old 09-29-2003, 08:39 PM   #6
Jadasin
Member
 
Registered: Jul 2001
Location: Ottawa, Canada "no eh!"
Distribution: Woohooo Finally a Slackware Chick, life is good
Posts: 46

Original Poster
Rep: Reputation: 15
Hi Quatsch, I'm like 99% sure im in single user mode, I mean after I type Linux single or Linux 1 (the both did the same thing for me) it boots up, as it's booting up it clearly states setting to runlevel 1, is this the same as single user mode, I would imagine yes???

And yah I'm sure that Linux is the name of the kernel im trying to start, any more ideas?? I think i may be stuck doing a new install...
 
Old 09-29-2003, 09:35 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
do you ahve knoppix or something like that? Maybe you could start Knoppix, mount the slackaware / partition read-write and then edit /etc/passwd and /etc/shadow of your slackware installation as root (I think these are the two relevant files).
 
Old 09-29-2003, 10:19 PM   #8
Blag-foo
LQ Newbie
 
Registered: Sep 2003
Location: my room, BC
Distribution: Slackware & Mandrake
Posts: 8

Rep: Reputation: 0
im a newb but is there anyway you could grab a copy of knoppix/similar live distro and edit the passwd file? just a thought, worth looking into id think if it saves you from losing your data
 
Old 09-29-2003, 10:20 PM   #9
Blag-foo
LQ Newbie
 
Registered: Sep 2003
Location: my room, BC
Distribution: Slackware & Mandrake
Posts: 8

Rep: Reputation: 0
this what i get for posting from work 8)
 
Old 09-29-2003, 10:37 PM   #10
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
try this:

at the lilo prompt, enter: linux init=/bin/bash

it should get you a bash shell with root privs, then edit your /etc/passwd file as necessary

from this article(must read!)
http://www.bastille-linux.org/jay/an...rewdriver.html

Ian
 
Old 09-29-2003, 10:54 PM   #11
Jadasin
Member
 
Registered: Jul 2001
Location: Ottawa, Canada "no eh!"
Distribution: Woohooo Finally a Slackware Chick, life is good
Posts: 46

Original Poster
Rep: Reputation: 15
Hey all, just wanna say thank for the help, after the last posts as I was reading around I found this article:

http://www.linuxgazette.com/issue50/tag/4.html

and did exactly as posted, was a great help and worked like a charm for anyone who might encounter the same problem in the future. Thanks dragon for the help, the article you posted was basically the same idea, I appreciate it.

Now all I have to do is get this w/lan going and I'm laughin all the way to slack heaven...

Anna.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost root password zillah Solaris / OpenSolaris 10 05-24-2005 06:28 PM
lost root password thick_guy_9 Slackware 2 03-07-2005 09:35 AM
lost root password papitu76 Mandriva 12 10-31-2004 11:40 AM
lost root password brandonAd Linux - Security 7 08-03-2003 04:23 AM
Lost My root password !!! hitesh_linux Linux - General 33 04-14-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration