• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to secure boot loader (grub menu) with password in RHEL 6

    Below is the GRUB menu where we are planning to put the password so that no one logs in to single user mode without permission

    As you can see by default anyone can press "e" and edit the grub menu to enter single user mode

    Login as root and run the below command. When prompted, provide the grub password to be used
    # grub-md5-crypt
    Retype password:

    Next edit the GRUB configuration file /etc/grub.conf and add a new entry as shown below after timeout parameter in the main section.
    password --md5 <password-hash>
    Replace <password-hash> with the value returned by grub-md5-crypt above

    # less /etc/grub.conf
    password --md5 $1$KYWqk1$cyrEcj8xXtctko70sSowx.

    Next time the system boots, the GRUB menu does not allow access to the editor or command interface without first pressing p followed by the GRUB password.

    Reboot and verify the changes

    So now it does asks for the password we had set.

    Let me know your success and failures

    Follow the below links for more tutorials

    Step by Step Linux Boot Process Explained In Detail
    RAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    15 tips to enhance security of your Linux machine
    How does a DNS query works when you type a URL on your browser?
    How to create password less ssh connection for multiple non-root users
    How to create user without useradd command in Linux
    How to give normal user root privileges using sudo in Linux/Unix
    How to do Ethernet/NIC bonding/teaming in Red Hat Linux
    How to install/uninstall/upgrade rpm package with/without dependencies
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is swappiness and how do we change its value?

    Deepak Prasad

    is a techie and an author who is still trying to survive in this IT generation with very little knowledge he has on Linux/Unix, VMware, SAN Storage, Automation, networking etc

    You can follow him on Facebook or Google+

    Do you also have something to share here?

    Become an author and be a part of our GoLinuxHub Team, Click here for more information
    How to secure boot loader (grub menu) with password in RHEL 6 How to secure boot loader (grub menu) with password in RHEL 6 Reviewed by Deepak Prasad on Thursday, June 05, 2014 Rating: 5

    1 comment:

    Powered by Blogger.