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 05-31-2002, 02:38 AM   #1
wby_annay
LQ Newbie
 
Registered: May 2002
Posts: 1

Rep: Reputation: 0
Lightbulb root password


I forget my root password. So I want to login by single-user mode. I added a parameter single in the end of command.
But the machine run and stop in "Building Window Manager".
why?
 
Old 05-31-2002, 06:24 AM   #2
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
what is this ''Building Window Manager"
is it any deamons. then try to load the system in interactive mode and chose not to load the deamon
 
Old 05-31-2002, 10:11 PM   #3
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by sakeeb
what is this ''Building Window Manager"
is it any deamons. then try to load the system in interactive mode and chose not to load the deamon
Interactive mode? Hmmmm... That's a RedHat init script capability. Other distros don't have it (Mandrake might have it, though).

When you get to a LILO prompt, type "linux init=/bin/bash". This will give you a root prompt without logging in. The root filesystem will be mounted read-only. You'll have to remount it as read-write, edit /etc/passwd, make your regular user account's UID zero, then run the "sync" command a couple of times, cross your fingers, remount the root filesystem as read-only, and reboot.

Next time just log in with your regular user account, and you'll be giver root privileges by default. When logged in, just run "passwd root" to change the root password. Then edit /etc/passwd and restore your normal UID (make sure it's the same as before).

Well, that's pretty much it... Good luck! Be warned, this is a risky procedure, can get your filesystem messed up! In the future, don't forget your root password!
 
  


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 10:28 PM
Booting into Single User on MDK 9 asks for root password instead of booting into root acadcworks Linux - General 6 01-10-2006 06:51 AM
root password amer_58 Linux - Newbie 6 08-20-2005 02:41 PM
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
root / SU password Stephanie Linux - General 9 09-04-2002 11:13 PM


All times are GMT -5. The time now is 02:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration