Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > recovering debian root password

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-12-2004   #1 (permalink)
MRT
Just Joined!
 
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
recovering debian root password



Another newbee finger problem, i forgot the root password for my debian install. (LILO 22.5.7.2 Debian GNU/MORPHEUS) how can i recover it?


Help help
MRT is offline  



Reply With Quote
Old 09-12-2004   #2 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
you can't just magically read the password from the password file anymore. all new systems use shadowed passwords, which means that when you enter your password, it encrypts it with a one-way algorithm and compares the passowrd to the encrypted password stored in the password file. this is why sysadmins can't usually tell you your password anymore if you forget it , but rather end up having to reset it for you.

-------------------------------------
you can however backup all of your important files before you reinstall even without the root password. boot up from a linux floppy (tinfoil hat, floppy-fw) or cd (install cd, knoppix) and mount your linux partition and copy the files to a zip disk or cd etc.
Code:
mkdir /mnt/hda1
mount -t fstype /dev/hda1 /mnt/hda1
replacing hda1 with wherever your linux partition is and fstype with whatever filesystem type your linux partition is (i.e. ext2, ext3. reiserfs)
-lakerdonald
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 09-12-2004   #3 (permalink)
MRT
Just Joined!
 
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
recovering my root password

so how do i reset it given that i can only get to the boot LILO screen and the password screen (i think i got too fancy too soon)(window brain now trying Debian linux)

Pleease explain!
MRT is offline   Reply With Quote
Old 09-12-2004   #4 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
i dont think you can reset it cos you are not root and can't get into root. the simplest way to solve this problem is to back up the files, and reinstall (and then write down your password! lol)
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 09-12-2004   #5 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
no, not nessicarly, there just was a post on this, download the gentoo livecd and boot that, then mount the drive and chroot into it, use the passwd util to change your password.
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Old 09-12-2004   #6 (permalink)
MRT
Just Joined!
 
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
recovering root password

Whilst sending e-mails i remember a user password and got into the system to the morpheus prompt, can i raise this user profile to root and then use this login, if so how do i do that? :o
MRT is offline   Reply With Quote
Old 09-12-2004   #7 (permalink)
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
sorry for the bad information. its my hands' fault for typing it! bad hands! bad hands! lol i never thought of that qub! good idea
__________________
the lost art of found sound
lakerdonald is offline   Reply With Quote
Old 09-13-2004   #8 (permalink)
MRT
Just Joined!
 
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
now that i am in the system

thanks for your advice, now that i am in the system i can see the home directory of the file i want but it is under the root can i create a copy of that /home directory giving it another name to access the files i need, if so can you give me an indication
MRT is offline   Reply With Quote
Old 09-13-2004   #9 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
whoa buddy, that made no sense. Are we just restoring your root password? insert the live cd, boot type

mount /dev/hda /mnt/gentoo
chroot /mnt/gentoo /bin/bash
passwd

then enter a new password, thats all....
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Old 09-13-2004   #10 (permalink)
MRT
Just Joined!
 
Join Date: Sep 2004
Location: United Kingdom
Posts: 5
the bad habbits of windows sysad

After getting in with a user name and password i thought that i could change the permission of root so that this user become the super user or root. because i do not have a boot disk or a pc with enought disk space on it i looked for and found some other information which said when booting into lilo type Linux single at boot and it will let you in as root so that you can change the password with the command passwd, however that caused an inexpected inconsistancy in /dev/hda it asks that i run fsck manually without a or p options and put the system in read only and do not allow any keyboard input except ctrl-d which simply goes through bootup and back to the same screen, so i am screeming so once again an ex-windows newbee ask how do i get out of this mess. HELP I CAN'T TAKE ANYMORE.
MRT is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:23 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1