LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-26-2004, 08:43 AM   #1
at165dB
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
Bypassing grub password


The company I work for had a third party install a Checkpoint Firewall-1 box here. The box was pre-configured and runs CheckPoint's SecurePlatform, a hardened linux distro. We currently manage the box via some nice GUI tools to create rules and view the logs. Well it's time for an upgrade of the system, and to do that I need to login as root, and run the update stuff. Here's where it gets fun. NO ONE KNOWS THE ROOT PASSWORD!!!
Yup. No one. Not the guys who were at this company when the box was installed, and not the company that installed it.

So I rebooted the box to see if I could be lucky and boot in single user mode. SecurePlatform uses GRUB as it's boot loader... and I have to press 'p' to edit any boot parameters. They have pre-defined boot option that is labeled 'maintenance' and it's a single user mode boot option. However, I need the password to boot it. :-/

I have mild linux experience, I can load and configure Gentoo on my laptop, but I'm no expert. Is there any way to bypass this boot password and load this box in single user mode to reset the root password?
I've got all the physical access to this box I want, and it has a CDrom and a floppy drive.

I recall back in my 1st playing with Redhat..5? that you could boot off a floppy OR the HD. There is a 'debug' boot mode that is just your normal
loading blah....[ok] stuff so I'm pretty sure I can grab the /dev/??? info for what to boot. So, would it be possible to load grub onto a floppy, and pop it in the server, and boot it's HD's?

If so, how can I create a grub disk when the only OSes here are WinXP, Win2k, Win NT, and Win 98.... and Novell 3.12.

Thanks!!!!!!!
-Russell


<edit> It looks like the debug mode doesn't display anything like /dev/hda0 when it lists the partitions it's mounting.</edit>

Last edited by at165dB; 05-26-2004 at 08:52 AM.
 
Old 05-26-2004, 09:20 AM   #2
zeropash
Member
 
Registered: Apr 2003
Location: Bangalore,India
Distribution: FC2, RHES, RH9, FC3, FC1, Slackware 3.0
Posts: 208

Rep: Reputation: 30
once I was in such a situation , there I tried booting from a cdrom (luckily the cdrom boot was enabled) , then on the installation screen (text mode installation after it asked me about those timezones etc etc) i tried pressing alt+f2 and got another screen where a shell promt was waiting for me .
mounted the hard disk
and removed the password line from grub. (i didnt have vi so i dont rem if i used sed or i used cat grub.conf | grep -v password .

to create a grub boot floppy I think writing the stage1 and stage2 (after concatenating them - copy /b a+b c?? - ) to a floppy using rawwrite should be enough. rawwrite should be available from the web(dosutils?).
the stage1 and stage2 can be obtained from the tar file for grub (search for grub in rpmfind.net)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Logon (telnet) to RedHat ES 3.0 bypassing password amutrl Linux - Newbie 2 05-18-2005 06:12 AM
GRUB password garnica Linux - Security 2 11-23-2004 08:33 AM
grub password linuxtesting2 Linux - Security 2 05-04-2004 02:50 PM
help bypassing GRUB... verbal Linux - Newbie 6 07-11-2002 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:10 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