LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-01-2003, 05:02 PM   #1
brandonAd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
lost root password


I've lost the root pasword, but my linux box starts with grub how do i go round it.
 
Old 08-01-2003, 08:56 PM   #2
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
GRUB itself is passworded? Or can you get to a login prompt?
 
Old 08-01-2003, 09:05 PM   #3
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
Re: lost root password

Quote:
Originally posted by brandonAd
I've lost the root pasword, but my linux box starts with grub how do i go round it.
at boot :

linux init=sh (or bash, zsh etc)

then remount / in read write mode with :

mount -o remount,rw /

Now you should change your password with :

passwd

Good luck !
 
Old 08-01-2003, 11:00 PM   #4
brandonAd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
youngstorm:
the grub is not passworded but i cant get to login prompt ; i dont know how to get to the login prompt since it boots and starts the grub then the grub options then login prompt is that what u mean?

brice2nice:
i cant get to boot: hw do i do it?
 
Old 08-02-2003, 12:15 PM   #5
youngstorm
Member
 
Registered: May 2003
Location: USA
Distribution: Fedora 21, RHEL 5,6&7, Windoze 7
Posts: 235

Rep: Reputation: 31
What do you see? Does it stay at GRUB? Does it go past GRUB? What does
it look like? Please give details.
 
Old 08-02-2003, 12:25 PM   #6
angelrod
Member
 
Registered: Oct 2002
Location: Mexico
Distribution: RedHat 9.0 and SuSE 8.1
Posts: 229

Rep: Reputation: 30
http://www.redhat.com/docs/manuals/l...ng-single.html

Then, when you get the shell just type 'passwd' to change the password
 
Old 08-03-2003, 02:30 AM   #7
brandonAd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
youngstorm:
no it doesnt stay at GRUB, it goes ahead to booting process and then login screen, is there a way to stop it? the other details at grub include press 'c' for command prompt, when i press 'c' the prompt looks like GRUB>
 
Old 08-03-2003, 03:23 AM   #8
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
press e instead of c.

Edit the line which has

kernel=....

at the end of the line add single

and resume the boot process. This will land you in the single user mode where you can change your root password.
 
  


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
Lost Root password Oakstaff Linux - Newbie 6 11-29-2006 04:03 AM
Lost root password amirdhagopal SUSE / openSUSE 13 02-10-2005 12:09 AM
lost root password papitu76 Mandriva 12 10-31-2004 10:40 AM
Lost root Password us06154 Linux - Newbie 17 08-14-2003 04:08 PM
lost root password dvong3 Linux - Newbie 2 06-13-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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