LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
Search this Thread
Old 03-12-2007, 07:35 AM   #1
amonty
LQ Newbie
 
Registered: Aug 2004
Distribution: FC6
Posts: 10

Rep: Reputation: 0
Locked out of root


Hello,

I know I did something silly. I have not configured a second user apart from root on my Fedora Core 6 running on my laptop (Compaq/HP Presarion V3133AU).

While I was at on it yesterday I clicked on automatic updater of Fedora. This was running for a very long time and end of day decided to kill the process. I clicked on force quit to the updator. Now once I have rebooted the machine I have been locked out of my machine.

My root password does not work anymore. I am assuming it is because of the update that was halfway through updating file. But does it in any way impact my /etc/passwd or /etc/shadow files? Well I do not know the answer and any help on this would be greatly appreciated.

Cheers,
Monty
 
Old 03-12-2007, 07:42 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
If you boot into single user mode you can reset your password.

This can by hitting e on your grub menu with your desired kernel, selecting the kernel line on the next screen and hitting e again, adding "single" (without the quotes) to the end of the line, hitting enter, and then typing a b to boot the thing.

You will get dropped at a shell prompt where you can set your password using passwd. Then exit the shell and regular bootup should continue.

This is why I always use a grub password... and don't allow just anyone physical access to my machine

For more info on how to get around in grub (and just in case those keystrokes I gave you weren't 100% correct... did it from memory as I don't currently have a linux box I can reboot) check out the Grub Manual.

Last edited by jtshaw; 03-12-2007 at 07:44 AM.
 
Old 03-12-2007, 07:46 AM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
A follow up... once you realize what you are capable of doing from the Grub user interface it will probably concern you that others are capable of doing so as well. However, being the nice folks that they are, the grub developers did include a fairly reasonable password interface....

Details are in the Secuity Section of the Grub manual.
 
Old 03-13-2007, 05:04 AM   #4
amonty
LQ Newbie
 
Registered: Aug 2004
Distribution: FC6
Posts: 10

Original Poster
Rep: Reputation: 0
"jtshaw", thank you very much for the help. I think I will use the Grub method you have outlined. I think I have not implimneted shadowing, if I have then it might not be easy to change the password by directly editing the shadow file. Whats is your point of view on this?

Cheers,
Monty
 
Old 03-13-2007, 09:25 PM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
Shadow is certainly good... but beware that in single user mode you are logged in as root and not required to enter the previous password to change the current with the passwd utility.
 
  


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
root locked out marghorp Linux - Software 6 05-17-2007 02:28 PM
Mandriva 2007, login help - I am being locked out of my admin and root accounts uzimadawa Linux - Newbie 7 01-28-2007 02:04 PM
Locked myself out of mysql...root user db table destroyed organica Linux - Server 2 12-08-2006 10:35 AM
Root Directory Locked... *sigh* Sonshyne Linux - Newbie 9 06-19-2004 04:42 AM
Locked Out Of Root Svha Linux - Security 8 10-04-2003 12:48 PM


All times are GMT -5. The time now is 10:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration