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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-30-2005, 12:56 PM   #1
a4syed
LQ Newbie
 
Registered: Sep 2005
Location: canada
Posts: 4

Rep: Reputation: 0
root password


Hi, I have forgotten my root password... is there any possible way to recover it???
 
Old 09-30-2005, 01:04 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
on your bootloader screen you need to boot run runlevel 1. if this is grub hit e for a prompt and just add "1" or "single" to the boot command, or do the same thing in lilo, normally by hitting escape for a prompt and runnign "linux single" or suitable equivalent for your system. this will log you in as root.
 
Old 10-01-2005, 11:34 AM   #3
a4syed
LQ Newbie
 
Registered: Sep 2005
Location: canada
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your prompt reply but this method of starting in single mode of my OS (SUSE 9.3 pro) using the 1 or single command takes me straight to the prompt that requests the root password still....



bootsplash: status on consol 0 changed to on
Master resource Control: runlevel S has been
give root password for login:

Last edited by a4syed; 10-01-2005 at 11:41 AM.
 
Old 10-01-2005, 12:53 PM   #4
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
you're not doing it right then! single user mode, runlevel 1 will NOT request a password.
 
Old 10-01-2005, 01:32 PM   #5
a4syed
LQ Newbie
 
Registered: Sep 2005
Location: canada
Posts: 4

Original Poster
Rep: Reputation: 0
hmmm the instructions you provided were not so complicated :S anyways i guess ill have to reinstall mayb ill install fedora this time cuz suse pro has some hardware detection probs in my laptop. Thanks for ur help though.


raza
 
Old 10-01-2005, 02:34 PM   #6
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Check out the /etc/inittab file. Search for something like this:

Code:
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
This is the Knoppix inttab file. Check which runlevel is the single user one and switch to that. The runlevels are sometimes distro-specific (Runlevel 5 on Fedora is the same as Runlevel 4 on Slackware. Runlevel 4 on Fedora does nothing)

-A
 
Old 10-01-2005, 03:49 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
And BTW single user mode can be configured to require that the root password be required for entry (for extra security). IIRC this is the default on Red Hat systems (not sure about SuSE). Rather annoying IMHO. Anyhow, no need to reinstall, follow the following procedure:

1) Boot off of a LiveCD or your distro's rescue CD
2) Mount your root filesystem
3) Edit your root filesystem's /etc/shadow and remove root's encrypted password. (2ns field of /etc/shadow, just leave nothing there).
4) When you reboot, root will be able to login with no password. Rectify this insecure situation immediately.
 
Old 10-01-2005, 07:04 PM   #8
a4syed
LQ Newbie
 
Registered: Sep 2005
Location: canada
Posts: 4

Original Poster
Rep: Reputation: 0
Wew you guys are so kewl and helpful.... but dym im installing debian as we speak.... suse was giving a hard time with my toshiba wireless card... and when the password problem came i finally gave up hope for the distribution and decided to use a more widely used distro.... o. im now loging in to the new distro so c ya all l8ter. once again thanks for the help
 
  


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 On
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
Logged in as root, prompted for root password ta0kira Slackware 13 04-25-2005 01:29 AM
root password hariiyer Linux - Security 2 11-16-2004 09:18 AM
root password shanenin Linux - Security 13 09-25-2003 04:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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