How to Protect GRUB with Password in RHEL / CentOS / Fedora Linux

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

14 Responses

  1. jun says:


    I’m new in linux. We forgot both the root password and GRUB password.
    How can I reset both? Also, how can i go to single user mode to remove the GRUB password?
    Thank you

  2. Omar says:

    i forgot the grub’s password, can you help me please. Thanks in advance.

  3. Tuhin says:



    login root (#)

    #vim /etc/grub.conf
    :se nu
    13 no line…… press enter key and go next line (14 no line)
    password ******

  4. karthik says:

    i followed the above steps in redhat linux . i did not get error . it didnt ask me the grub password …why ? can u tell me y its happened ………..

  5. Dhanus says:

    grub is not showing up all the installed operating systems.

    I have rhel 6 64-bit os after that i installed centos 64-bit after installing centos rhel 6 is not showing up in grub..

    whereas i am also having windows 7 which is active all the time

  6. Peter says:

    Thanks for your great info.
    If e person boot via a Live CD or another OS, they can access to all HDD files & folders. How can we protect it?

  7. opa says:

    How about Ubuntu? :/

  8. Mohan says:

    how r u,
    This is MOhan

    I have one doubt How to change the grub password in Rhel 6


    • Ravi Saive says:

      Please go through the article, we already explained very clearly how to protect grub with password. Follow same procedure for changing.

  9. Corey says:

    No there are different files in 18 because it uses grub 2 it does not work

  10. Jacob says:

    What about Fedora 17/18? I think your solution won’t work with the latest versions.

    • Ravi Saive says:

      I think it should work with latest Linux versions too,because the grub file is the same and procedure also. Why not you try and tell us.

Leave a Reply

Your email address will not be published. Required fields are marked *

Join Over 85000+ Linux Users
  1. 53,676
  2. 2,838
  3. 20,639

Enter your email to get latest Linux Howto's