LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 06:13 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

chris
xxxx
 
Old 08-03-2001, 04: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, 04: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, 08:12 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Code:
lilo: linux single
# passwd root
# Change password for root:
That should do it.
 
Old 08-03-2001, 09: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, 12:26 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 12: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



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 10:28 PM
Recover MySQL password wwnexc Linux - Security 2 10-16-2005 01:08 PM
how to recover password enigmatech Linux - Newbie 13 09-04-2005 04:22 PM
Is there any way to recover my root password... deepu_ks Linux - Security 4 08-03-2005 10:41 AM
recover root password sophie Linux - Newbie 1 08-05-2003 07:19 PM

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

All times are GMT -5. The time now is 05:40 AM.

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