LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-02-2007, 01:09 PM   #1
Yentor
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 9
Posts: 24

Rep: Reputation: 16
Exclamation root password config in GRUB


i've read this article http://www.redhatmagazine.com/2007/0...boot-problems/ it describe, how can i use GRUB. I have a question. Can i change root password from GRUB, how? Can is overwrite the password file, and where stores the system the password?
answer somebody, who really know this... please
 
Old 09-02-2007, 01:48 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
GRUB cannot be used to change system configuration, passwords, etc.

There are a minimum of two ways to get into a system when you have lost the password:
  1. Boot into single-user mode--stop the GRUB countdown by hitting tab, edit the kernel line adding the word "single" at the end, and then boot.
  2. Boot from a live CD (eg your install CD), mount the partition containing /etc, and edit the /etc/passwd file to remove the first "x" in the entry for root. The modified entry will read--in part--"root:: "
 
Old 09-02-2007, 01:52 PM   #3
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Or just remove the harddisk, plug it into another pc, mount the filesystem where shadow file is in and clear the root password..put the disk back and enjoy. Of course encrypting the disk makes this a bit more difficult, but generally people just don't take the time and trouble, and so the world is open..
 
Old 09-02-2007, 02:58 PM   #4
Yentor
LQ Newbie
 
Registered: Apr 2007
Distribution: Fedora 9
Posts: 24

Original Poster
Rep: Reputation: 16
Question

Quote:
Originally Posted by pixellany View Post
GRUB cannot be used to change system configuration, passwords, etc.
  1. Boot into single-user mode--stop the GRUB countdown by hitting tab, edit the kernel line adding the word "single" at the end, and then boot.
after i type "single", after the boot what happens the system starts in text mode or else?
 
Old 09-02-2007, 03:29 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Yes. It will come up with a text screen--just as if you had done ctrl-alt-F1. If I remember correctly, you don't even have to log in---you are just THERE--root powers and all.
 
Old 09-02-2007, 03:36 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
It should be noted that some distributions require root to log in using the password even in run level 1 or run level S.
 
  


Reply

Tags
grub, password, root


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
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 08:27 AM
didn't set root password during install/config fsuchucky3 Suse/Novell 3 08-17-2006 09:24 PM
i don't know my grub/root password Joe120 Linux - Newbie 7 01-25-2006 06:54 AM
root and grub password mbayeb Linux - General 3 11-24-2003 08:06 AM


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