Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-10-2002, 02:27 PM   #1
LQ Newbie
Registered: Apr 2002
Location: the Netherlands
Distribution: Lubuntu
Posts: 10

Rep: Reputation: 0
Unhappy root passwd

Yes I know, the mother of all newbie questions: I forgot my root password, can anyone help me on this one or do I have to re-install
Old 06-10-2002, 02:46 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 250Reputation: 250Reputation: 250
and my question would be, have you searched the forums here. i think this is asked at least once a week on the site with excellent answers.

but you need to boot into single user mode to get that password changed for root.
Old 06-11-2002, 06:16 AM   #3
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Booting into single mode doesn't always work. On my Caldera system, after I went through the considerable trouble of adding ' single ' to the end ' kernel ' line from the splashscreen ( lilo is much easier. Just enter ' linux single ' at the prompt. ) , I was greeted by a login prompt. It wanted my password. Fortunately, I was just testing it. The culprit was the inittab file and these lines:

# Inittab

# What to do in single-user mode.
~1:S:wait:/etc/rc.d/rc 1
Old 06-11-2002, 09:51 PM   #4
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Get DemoLinux and just mount your hard drive Linux partition there and edit the /etc/passwd file, setting root's password to nothing.

If you're using lilo, you can also add the boot parameter "init=/bin/bash", but be very careful, this can get your filesystem screwed over big time, make sure to sync a few times and remount the partition in read only mode before cold booting when you're done!
Old 06-16-2002, 07:29 AM   #5
LQ Newbie
Registered: Apr 2002
Location: the Netherlands
Distribution: Lubuntu
Posts: 10

Original Poster
Rep: Reputation: 0

I tried the backdoors y'all sugested but I completely screwed up my filesystem, by that time it was too late to make backup's.
I could'nt even get into my user acount anymore so I finaly decided to re-install the whole lot. Nevertheless I am still a happy Linux user.


Learn the big lesson: DO NOT forget your root passwd
Old 06-16-2002, 08:25 AM   #6
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
The way around that is to NOT HAVE a root password. Just kidding!!! Please no hate replies, it was a joke, honest. I would never ever ever suggest to ANYONE, especially a noob, to not have a root passwd enabled. Well maybe I would, but only to someone who is really mean.


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 passwd sanu Linux - Newbie 1 09-20-2004 05:45 AM
root passwd and username latika.gk Linux - Newbie 3 05-26-2003 07:24 AM
root passwd Prasanth Linux - General 0 03-17-2003 06:12 AM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 11:54 AM
root passwd baburaj Linux - General 7 04-16-2002 01:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration