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 06-10-2002, 02:27 PM   #1
sparks
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
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
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
linuxcool
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
~~:S:wait:/sbin/sulogin
 
Old 06-11-2002, 09:51 PM   #4
sewer_monkey
Member
 
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
sparks
LQ Newbie
 
Registered: Apr 2002
Location: the Netherlands
Distribution: Lubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
Smile

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.

greetz

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

Rep: Reputation: 69
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.
 
  


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 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

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

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