LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-19-2013, 11:34 AM   #1
RegulusDeneb
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Rep: Reputation: Disabled
Password recovery (not the root password)


Hello

I installed SL 6.4 in Virtual Box and have misplaced the password to login to the operating system. Is there a way to reset it? Thanks!
 
Old 05-19-2013, 11:41 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Well, if you have the root password just login as root and set a new password for your user. Use Ctrl+Alt+F1 to switch to a virtual terminal and login as root, then use
Code:
passwd username
to set a new passwd.
You can get back to graphical login with Alt+F7.
 
Old 05-19-2013, 11:51 AM   #3
RegulusDeneb
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
I always keep passwords in a file, but it appears I didn't record either password this time. So I don't have the root one either.
 
Old 05-19-2013, 12:27 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Have a look here: http://www.dagorret.net/reset-root-password-in-linux/
This is for Fedora, but should also work on SL.
 
Old 05-19-2013, 01:23 PM   #5
RegulusDeneb
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Yes, thank you, but I've googled and there are several webpages with help on recovering the root password. When I get to the grub prompt on the GNU GRUB version 0.97 screen, and enter
Code:
single
it doesn't recognize it. Can't find any pages on recovering the login password, though.
 
Old 05-19-2013, 01:35 PM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
try the steps as here:

http://www.linuxquestions.org/questi...3/#post4128021
 
Old 05-20-2013, 07:25 PM   #7
RegulusDeneb
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by divyashree View Post
Thanks for the response. However, still having problems.

Here are the steps I've tried and their result.
1) Click Start in VM.
2) Hit any key.
3) Press 'e'.
4) Arrow down to the "kernel" line. Press e.
5) That brings me to "<M_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet"
6) I enter "Single"
7) It boots to the login screen.
(Actually, the last few time I've tried this step, it just goes back to the previous screen with the "kernel" line.

Alternate steps:
3) Press 'a'.
4) That brings me to this line: "<EYTABLE=us rd_NO_DM rhgb quiet"
5) Enter "Single"
6) Boots to the login screen.

"l" and "s" produce the same results.
 
Old 05-20-2013, 07:40 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Try it with init=/bin/bash instead of single, this should give you a basic shell, then you can use
Code:
passwd root
to set a new password for root.
Alternatively, use a live-CD to boot the system, mount the /-partition, chroot into it, then use passwd to change the password.
 
Old 05-20-2013, 08:40 PM   #9
RegulusDeneb
LQ Newbie
 
Registered: Apr 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
That produces the same results as "Single". When I enter "e" to edit commands before booting, then
Code:
init=/bin/bash
, it brings me back to the "kernel" line.
When I enter "a", then
Code:
init=/bin/bash
, it boots to the login screen.
When I enter
Code:
int=/bin/bash
at the grub prompt, it doesn't recognize it.

I'd rather reinstall than boot from a live cd.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovery of root password tjd>6591 SUSE / openSUSE 7 01-23-2010 11:26 PM
Root password recovery. skaynum Linux - Newbie 7 11-08-2008 12:43 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
Root password recovery Jabber Linux - Security 6 11-27-2005 04:23 PM
Password Recovery (not root) NewbGhostShells Linux - Newbie 3 12-17-2003 03:03 PM

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

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration