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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-10-2002, 02:27 PM
|
#1
|
LQ Newbie
Registered: Apr 2002
Location: the Netherlands
Distribution: Lubuntu
Posts: 10
Rep:
|
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
|
|
|
06-10-2002, 02:46 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
06-11-2002, 06:16 AM
|
#3
|
LQ Addict
Registered: Jun 2001
Posts: 1,183
Rep:
|
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
|
|
|
06-11-2002, 09:51 PM
|
#4
|
Member
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624
Rep:
|
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!
|
|
|
06-16-2002, 07:29 AM
|
#5
|
LQ Newbie
Registered: Apr 2002
Location: the Netherlands
Distribution: Lubuntu
Posts: 10
Original Poster
Rep:
|
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
|
|
|
06-16-2002, 08:25 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|