LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-17-2008, 05:48 AM   #1
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Rep: Reputation: 15
recover login and password


Hi everybody

I-ve got a PC with a dual boot Ubuntu and slackware. Since I-ve been using ubuntu for the past few months I forgot slackware login and password. I tried to recover them using ophcrack but I didn-t manage.

How can I do? Can I try with a live cd? If so, where canI look fot the login and password?

Thanks for any help
 
Old 12-17-2008, 08:29 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

You say it's a dual boot so all you have to do is chroot into the slackware OS from the Ubuntu OS.

In short (but check before doing this blindly):

say Slackware's root (/) is on sda2

In ubuntu do:

# mount /dev/sda2 /mnt
# chroot /mnt /bin/bash

(now you are in your slack environment)
# source /etc/profile
(change your password)
# passwd
# exit
(now you are back in ubuntu)

# exit

reboot into slack and use your password.

Remember, this is done of the top of my head, check it first.

Hope this helps
 
Old 12-20-2008, 09:04 AM   #3
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
Thanks and sorry for my replying so late. I really coldn't get to my PC before now.
I'll try to put into work what you suggested me

I'll start off looking for mount. (???)

Thanks again
 
Old 12-20-2008, 09:11 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
Running "bash -l" is a good idea after chrooting. A login shell will run the .profile, setting up the PATH variable.

I had a situation where zeroing out the password wouldn't work. Somehow I never set the root password when I installed it that time. So I simply copied my regular user's password hash for root's, and then rebooted. I could log in with my regular users password, and use "passwd" to set it again.
 
Old 12-21-2008, 11:46 AM   #5
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Thanks for that... will remember for future use. My advice came directly from Gentoo user manual.

Did you end up fixing your problem gawain?
 
Old 12-24-2008, 09:22 AM   #6
gawain
Member
 
Registered: Dec 2006
Location: Italy -Rome
Distribution: Slackware 11.0
Posts: 55

Original Poster
Rep: Reputation: 15
Sorry, but really I had no time to try to solve the problem seriously. For a couple of days, I think, I'll be "working" on something else.

Just I want to take the chance to wish merry Christmas to everybody
 
  


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
recover password hraposo Debian 1 02-24-2007 05:56 AM
recover password kwickcut Mandriva 2 12-04-2005 07:00 PM
how to recover password enigmatech Linux - Newbie 13 09-04-2005 04:22 PM
How to recover a lost username / password for Solaris 7 at gui login screen noitwhiz Solaris / OpenSolaris 2 09-29-2004 12:32 PM
Loaded Linux, lost login ID and password for superuser? How can I recover? PaulK Linux - Newbie 3 08-24-2004 10:01 PM

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

All times are GMT -5. The time now is 11:14 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
Open Source Consulting | Domain Registration