LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-31-2016, 01:15 AM   #1
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Rep: Reputation: Disabled
Question Cannot lock grub2 bootloader


I am in CentOS 7 and I can't seem to be able to lock grub2.


I did the following:

edited /etc/grub.d/00_header

added at the end

set superusers="tux"
password tux grub.pbkdf2.sha512.10000. (the rest of the salt)

After rebooting it does not ask for my password.

I also tried doing it without encryption at first.
 
Old 01-31-2016, 01:30 AM   #2
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Original Poster
Rep: Reputation: Disabled
I also encrypted my password with a hash and added --users "" to the 10_linux and ran grub2-mkconfig
 
Old 01-31-2016, 01:41 AM   #3
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Original Poster
Rep: Reputation: Disabled
Also I did output it to /boot/grub2/grub.cfg
 
Old 02-02-2016, 08:46 PM   #4
MrTux
Member
 
Registered: Dec 2015
Posts: 131

Original Poster
Rep: Reputation: Disabled
bump
 
  


Reply

Tags
bootloader, grub2, lock, security



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
[SOLVED] Using the Grub2-Bootloader from the host CBM200 Linux From Scratch 3 02-08-2014 04:13 PM
grub2 can't see my win 7 partition and yast2 bootloader can't reinstall grub2 jjrojaspy SUSE / openSUSE 5 07-07-2013 10:38 PM
How does GRUB/GRUB2 move the Windows bootloader? ulkoma Linux - Newbie 2 04-28-2012 05:50 PM
Configuring GRUB2 Bootloader kory.l.hansen Linux - Desktop 6 01-12-2012 07:33 PM
[SOLVED] How to start Grub2-bootloader from extlinux-bootloader? floppy_stuttgart Linux - Newbie 13 11-13-2011 06:43 PM

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

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