LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 08-02-2001, 06:04 PM   #1
Dannyb
LQ Newbie
 
Registered: Aug 2001
Posts: 2

Rep: Reputation: 0
Recover Root password


Hi all,
Is there a way for me to recover the root password? I forgot the root password and couldn't figure out how to reset it. I do have a user account to log in. Thanks
 
Old 08-02-2001, 07:13 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
boot linux in single user mode, and set the password there.

chris
xxxx
 
Old 08-03-2001, 05:24 AM   #3
Supraj
LQ Newbie
 
Registered: Jul 2001
Location: kolkata,india
Posts: 17

Rep: Reputation: 0
i had also faced the same problem once and was forced to reinstall...how to boot in single user mode..pls give detail.
 
Old 08-03-2001, 05:31 AM   #4
glj
Member
 
Registered: Jul 2001
Location: London
Distribution: RH 9
Posts: 151

Rep: Reputation: 30
at the lilo boot prompt type linux single, which will boot the system at runlevel 1 (single user mode). Either that or edit the /etc/inittab to change the default runlevel to 1.

That's all I know!

glj
 
Old 08-03-2001, 09:12 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Code:
lilo: linux single
# passwd root
# Change password for root:
That should do it.
 
Old 08-03-2001, 10:53 PM   #6
Supraj
LQ Newbie
 
Registered: Jul 2001
Location: kolkata,india
Posts: 17

Rep: Reputation: 0
thx a lot ..it's working....this site has really helped me a lot.
 
Old 08-04-2001, 01:26 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by glj
Either that or edit the /etc/inittab to change the default runlevel to 1.
Just realized, that wouldn't work, you have to be root to edit it in the first place. Just a heads up to anyone else who might have the same problem and runs across this thread.
 
Old 10-25-2001, 01:04 PM   #8
unixmaestro
LQ Newbie
 
Registered: Oct 2001
Posts: 1

Rep: Reputation: 0
Thumbs up Can U Try This!!!!

U Maybe Interested In Trying This Out....

1) linux init=/bin/sh.......this will give u a shell prompt

2)you'll have to remount the root filesystem

3)After single-user mode, it's cleaner to reboot rather than to press ^D to do the multiuser boot, because the init "runlevel" mechanism is messy yaar.

4)you can edit (/etc/passwd or /etc/shadow as appropriate), or you can change the password without supplying the old one as root by typing "passwd root".

All Said n Done...ur Up with ur New Password..
Good Luck
Brian McDan
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Recover MySQL password wwnexc Linux - Security 2 10-16-2005 02:08 PM
how to recover password enigmatech Linux - Newbie 13 09-04-2005 05:22 PM
Is there any way to recover my root password... deepu_ks Linux - Security 4 08-03-2005 11:41 AM
recover root password sophie Linux - Newbie 1 08-05-2003 08:19 PM


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