Thursday, January 16, 2014

Password Protecting GRUB

Hello Friends,

We could configure boot loader password for preventing unauthorised access of grub menu.
But this solution does not prevent an attacker from booting into an insecure operating
system in a dual-boot environment.
So we could use lock directive for such prevention.
Below are steps for the same.

Step 1) Generate md5 encrypted password

=============================
[root@station-x ~]# grub-md5-crypt
Password:
Retype password:
$1$pgjiX1$PVxHe8rI0a1S.Cgh4AKzB.
==================================

Step 2) Edit grub.conf as shown below

=================================
title Red Hat Enterprise Linux (2.6.32-220.el6.x86_64)
lock
password --md5 $1$pgjiX1$PVxHe8rI0a1S.Cgh4AKzB.
root (hd0,0)
kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=UUID=224b3aa3-6cd2-4634-a409-1a834c46fa9c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
initrd /initramfs-2.6.32-220.el6.x86_64.img

===============================================

4 comments:

  1. I really loved reading your blog. It was very well authored and easy to understand. Unlike other blogs I have read which are really not that good.Thanks alot! Download free Aplikasi PC Folder Secure - Don't Hang Close to Searching, Read About Cell Desktops About this page how to encrypt a cd or dvd

    ReplyDelete
  2. My relatives all the time say that I am wasting my time here at night, but I know I am getting knowledge everyday by reading this fastidious post. Dig this: How To Lock Files

    ReplyDelete
  3. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
    Cyber Security Projects for Final Year

    JavaScript Training in Chennai

    Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete

Renew k8s certificates

Check If certificate expires: amikum@~:03:06:54(⎈ |local-cluster:default):sudo kubeadm certs check-expiration CERTIFICATE                EXP...