LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-28-2009, 10:24 PM   #1
bhavyanandan
LQ Newbie
 
Registered: Sep 2009
Location: India
Distribution: Redhat
Posts: 3

Rep: Reputation: 0
Smile Forgot Root Password & User Name !!


Hi Folks

Is there any way to recover the Root User name & the password if the end user forget's it
 
Old 09-28-2009, 10:39 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 122Reputation: 122
You can change the password: just boot into a recovery mode (via livecd, init=/bin/bash, or grub option for many modern distros) and remount root rw, then use passwd to change the password.
 
Old 09-28-2009, 10:54 PM   #3
mobinskariya
Member
 
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
this topic has been discussed many times in this forum..just a search will give you the required answer or under his thread you can find similar threads.
 
Old 09-29-2009, 05:57 AM   #4
eileen123
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
comment

Pretty well said..!!
Eileen..
========================
 
Old 09-29-2009, 05:59 AM   #5
eileen123
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
comment

Nice thoughts..
Eileen..
============================
online data storage
 
Old 09-29-2009, 04:50 PM   #6
AngTheo789
Member
 
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
Recovering the "Root User Name" is a contradiction in terms, as root is always called root. The original question might have been about recovering one or more existing usernames and their passwords.

Logging in a root in rescue mode allows to read the /etc/passwd file, containing all existing usernames. Passwords are usually stored separately in /etc/shadow and are encrypted, so the easiest way to access the account is by changing the password.
 
Old 09-29-2009, 05:15 PM   #7
Dopamine
LQ Newbie
 
Registered: Sep 2009
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by AngTheo789 View Post
Recovering the "Root User Name" is a contradiction in terms, as root is always called root. The original question might have been about recovering one or more existing usernames and their passwords.

Logging in a root in rescue mode allows to read the /etc/passwd file, containing all existing usernames. Passwords are usually stored separately in /etc/shadow and are encrypted, so the easiest way to access the account is by changing the password.
Is there any way to activate rescue mode from a remote location? (im guessing no XD but its worth a shot)
 
Old 09-29-2009, 08:35 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You can try

telinit 1

which will put the system into single user mode. It may(!) ask for the root user passwd. If you know that then you're fine, although you don't need single user mode in that case; use

su -
<root passwd>

but if its being awkward, try single user.
 
  


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 to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM
Forgot Logon User & Password to get on Linux Laptop Letere Linux - Newbie 10 04-17-2007 08:31 AM
I Forgot my root password Hamid Moradmand Linux - Distributions 4 06-02-2004 02:45 PM
Forgot Root Password Darthcoder Linux - Newbie 5 11-08-2003 04:23 PM
forgot root password. How can I... 95se Linux - General 7 10-28-2003 02:12 AM


All times are GMT -5. The time now is 04:00 PM.

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