Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Generate a preferred password for GRUB ( CentOS 7 provides tools for setting password for GRUB ) 1 . 1 [ Screenshot ] Execute #
Generate a preferred password for GRUB CentOS provides tools for setting password for GRUBScreenshot Execute # grubsetpassword in terminal and press ENTER to create your own encrypted password for GRUB for testing purpose, the GRUBs password is better to be different than the root users password If your CentOS doesnt have grubsetpassword You can install it manually with the command yum install gruby and then update grubs configuration with command grub mkconfig o bootgrubgrubcfg Doublecheck if a new file bootgrubgrubcfg is generated as soon as the password is set. Enable the password for a preferred Boot entry. Screenshot Open the bootgrubgrubcfg file with vivim and find the boot entry that you want to harden with a password. Again, as Fig shows, there are entries that we can enable the bootloader password for. The configuration file includes the configuration data for both entries. To find the configuration data for an entry quickly, you can search keyword menuentry in vivim and go through the results until you see a line like the highlighted section in Fig. Note that the highlighted section in Fig. is the configuration data for the SECEND entry because the content next to menuentry is CentOS Linux rescue If you want to enable the bootloader password for the first entry, youd find the configuration data for the first entry. To enable the password for an entry, all you need to do is to remove the unrestricted flag from the entrys configuration data, and then save and exit vivim Please only enable bootloader password for one of the entries. Screenshot Reboot the system, select the entry that you just removed unrestricted from, press ENTER, and then test if you need to enter the bootloader password before logging into CentOS username is root, bootloader password was created in step
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started