LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2010, 11:39 AM   #1
shakazzolo
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Rep: Reputation: 0
Disable grub boot loader interface


Hi,
I'm trying to prevent users from accessing the grub menu, but setting the timeout to 0 doesn't cut it because a user can hold down ESC during boot.

At the moment, it seems that my only option is to set a password for grub. But I was hopping that there is a better way where I can disable that feature completely.


Thanks!
 
Old 07-07-2010, 11:50 AM   #2
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Don't think so, you can have it use LILO, but thats probably not what you want.

Your best bet might be to lock the server up in a cage or cabinet if you don't want people to have access to it.
 
Old 07-07-2010, 11:52 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
You could also set the hidden attribute for the menu, but that is also bypassed by esc. I don't think you should disable menu access entirely because you may need to boot as single user if the machine locks up. Without the menu, you can't add the necessary option to the kernel options. So you will need a live or rescue disk instead.
 
Old 07-08-2010, 11:30 AM   #4
shakazzolo
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
What about recompiling grub and replacing some binary files? Can anyone help me with that?

btw, I'm using grub not grub2
 
Old 07-08-2010, 11:32 AM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by shakazzolo View Post
What about recompiling grub and replacing some binary files? Can anyone help me with that?

btw, I'm using grub not grub2
Well there is probably a way to do it, but you really wouldn't want to.
 
Old 07-08-2010, 12:07 PM   #6
idlehands
Member
 
Registered: Mar 2010
Distribution: zLinux, RHEL, Ubuntu, SUSE
Posts: 50

Rep: Reputation: 16
You can password protect grub
 
Old 07-08-2010, 02:21 PM   #7
shakazzolo
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
protecting grub with a password is not an options because this system will be converted to a liveCD image and distributed to many users. If someone manages to break the password then there is a high possibility that all the users out there will be able to be able to bypass all the security by booting their image in single user mode.

I will not worry about the actual ISO image sense it will be encrypted and signed.


Right now I'm going to try to recompile grub after modifying the source code. I will make it in a way that as long as the system was able to boot, grub will not display messages nor accept any input. If booting fails, the menu will be displayed. Then I will protect the menu with a password.

Any other ideas before I start bashing my head against this?
 
Old 07-08-2010, 02:54 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,602

Rep: Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648Reputation: 2648
a VERY strong password with alt characters
http://www.combobulate.com/node/25
http://www.irongeek.com/alt-numpad-a...and-chart.html

do you know just how long rainbow tables will take with that.
 
1 members found this post helpful.
Old 07-09-2010, 07:01 AM   #9
shakazzolo
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Even if it takes a year ,I'm sure its less in months, to break the password, it is not worth the hassle that comes after that. The minute this system hits the internet, there will be people actively trying to find a workarounds (including our test department)

I'll post my patch here when I'm done... if ever
 
Old 07-10-2010, 12:57 PM   #10
idlehands
Member
 
Registered: Mar 2010
Distribution: zLinux, RHEL, Ubuntu, SUSE
Posts: 50

Rep: Reputation: 16
I assume you could set an impossible grub password by creating a hash that essentially didn't map to any real combination of characters. Like when you mod the hash by injecting random characters to make a user unable to login locally.
 
Old 07-11-2010, 07:05 PM   #11
shakazzolo
LQ Newbie
 
Registered: Jul 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Wow man! Why didn't I think of that! Thanks I think this will work really well for me

Thanks1
 
Old 07-17-2010, 07:09 PM   #12
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,827

Rep: Reputation: Disabled
John

Thanks for links
 
  


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
Need help on virtual interface eth0:1 disable at boot time ravibhure Linux - Newbie 4 02-11-2010 03:12 AM
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 06:20 AM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 01:47 PM
How i can disable boot-loader password linuxjamil Linux - Hardware 2 02-27-2008 02:33 PM

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

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