Grub is a bootloader from the Gnu project. It is a multi-boot specification implementation that allows users to have multiple operating systems in the computer at the same time and select when the computer starts. The operating system you want to run. In the Ubuntu system, many users will set a password for Grub2, but how do you do this? The following small series will introduce you to the method of setting the Grub2 password in Ubuntu.
steps:
leekwen @ leekwen: ~ # grub-mkpasswd-pbkdf2
Enter password: "" "Here you enter the password for grub
Reenter password: "" Enter your grub password here
Your PBKDF2 is grub.pbkdf2.sha512.10000.BC4D0A450E86EE447561FC822C832xxxxxxxxxxxxx45572D3B4E40500CE
leekwen@leekwen:~# cp /etc/grub .d/00_header /etc/grub.d/00_header.bak
leekwen@leekwen:~# vi /etc/grub.d/00_header
leekwen@leekwen:~# tail -n 6 /etc/grub.d/00_header
### Add those line to set GRUB2 password
cat "EOF
set superusers=“leekwen”
password_pbkdf2 leekwen grub.pbkdf2.sha512.10000.BC4D0A450E86EE447561FC822C832xxxxxxxxxxxxx45572D3B4E40500CE
EOF
### Add end
leekwen@leekwen:/etc/grub.d# update -grub "Run this command to take effect
Generating grub.cfg . . .
Found linux image: /boot/vmlinuz-3.11.0-15-generic
Found initrd image: /boot/initrd.img-3.11.0-15-generic
Found memtest86+ image: /memtest86+.bin
done
After restarting, when you start the item, press e, you will be asked to enter:
username:
password:
Only the username (such as the username I just set: leekwen) and the password (just the password generated by grub-mkpasswd-pbkdf2) can be used to start. The item's edit menu, the start item is safe. Remember, you must run the “update-grub” command after modifying 00_header to be effective!
The above is the way to set the Grub2 password in Ubuntu. If you don't know the user, you can refer to the steps described above to set the password. Users who need it can try it out!
There is no rc.local in SUSE Linux 10, you want to use it you have to write an rc script file in the
The Ubuntu system cannot correctly type using the Pinyin input method. The words displayed on the in
Ganglia is an open source monitoring software that can have a monitoring server. Ma
Windows 10 is the latest Windows system. At present, only the trial version has bee
Linux crontab command use instance summary
Ubuntu 64-bit installation WPS office software error how to do?
How to upgrade OpenSSH under Linux system?
How Linux uses the alias command
How to install and configure DenyHosts tool
What if CentOS 6.4 upgrades Python and yum is not available?
How to manually upgrade Gentoo and its kernels
How does Ubuntu set up a shortcut to start a program?
Linux system management disk and file method
What if CentOS can't use the scp command?
How to configure HTTP load balancing system
The difference between hardware processing and software processing in Linux system
PPStream download and install uninstall and open questions
Microsoft Announces Minimum Requirements for Windows 8.1 Hardware Device Certification
Solving the problem that VISTA can't use Ruijie client
Windows8 how to use BlueScreenView to analyze the cause of blue screen failure
Win8 use small trick win8 operation skills summary
Foreign media: The new Windows7 activation crack tool was discovered
How to set the input method as the default input method under winxp system
CF ghost frenzy biochemical strikes advanced replenishment limited time collar