LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-05-2002, 07:24 AM   #1
deadman-inc-au
LQ Newbie
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 5

Rep: Reputation: 0
oh no, i forgot my root password


help, i forgot my root password, is there a way of changing it so i can use linux again

i dont want to have to re-install, as everything else is working fine this time around

btw i'm using mandrake 8.1, and i dont have a floppy drive
 
Old 03-05-2002, 07:38 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Try getting linux into single mode. Or pass init=/bin/bash when booting with lilo. Then use passwd to change the password. If that doesn't work then try with a boot disk. Mount the partitions in /mnt and then run:
chroot /mnt /usr/bin/passwd
 
Old 03-05-2002, 07:38 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
when lilo loads, do a ctrl x and just run "linux single" or "linux init 1" this should boot linux into single user mode. i.e. root without entering a password. then just run "passwd" to set it again.
 
Old 03-05-2002, 07:49 AM   #4
deadman-inc-au
LQ Newbie
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
i'm just about to try to get into single usermode again
last time when i type Linux-Mandrake single
it didn't work

btw the boot images for lilo that i have is Linux-Mandrake and Windows-200Pro

so i dont need to have a -single or -init 1 etc
anyway brb
 
Old 03-05-2002, 08:00 AM   #5
progster
Member
 
Registered: Feb 2002
Distribution: ubuntu
Posts: 76

Rep: Reputation: 15
You could try getting the pass file as normal user and brute force it... should not be your first choice though! Brute forcing takes very long...

-Progster
 
Old 03-05-2002, 08:04 AM   #6
deadman-inc-au
LQ Newbie
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
just tried the init 1 option,
and it didn't work still booted x auto
about to try the /bin/bash
option
brb:smash:
 
Old 03-05-2002, 08:26 AM   #7
deadman-inc-au
LQ Newbie
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
ok that almost worked
when i did the init=/bin/bash option i got to the console in i presume single user

but got an error when i tried to passwd root

something about pwdb being locked by another resource

would i need to remount the root filesystem in rw mode,

and if so how do i do that?
 
Old 03-05-2002, 08:38 AM   #8
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
mount -o rw,remount /
 
Old 03-05-2002, 08:48 AM   #9
deadman-inc-au
LQ Newbie
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 5

Original Poster
Rep: Reputation: 0
you bloody beauty,
it worked,
you guys and gals are legends
thankgod i didn't have to reinstall
 
  


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
Forgot root password muru Linux - Security 5 09-26-2005 12:37 AM
forgot root password ali_hammad Linux - Newbie 3 03-09-2005 10:46 AM
forgot root password ali_hammad Linux - Security 4 03-08-2005 02:44 PM
Forgot root password Jay Smith Linux - Newbie 15 10-12-2004 06:23 PM
Forgot Root Password Ironpaws Linux - Software 6 07-03-2004 04:48 PM


All times are GMT -5. The time now is 02:47 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