In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to set Ubuntu GRUB global password and menu password". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to set Ubuntu GRUB global password and menu password".
The password setting of Ubuntu GRUB can be divided into global password and menu password.
To prevent others from changing the root password through Ubuntu GRUB, you need to set a global password. Vi / boot/grub/grub.conf (or menu.lst) can add the password= password to the next line of the parameter splashimage, save and restart the computer. When you log in to the Ubuntu GRUB menu page again, you will find that you can no longer directly use the e command to edit the startup tag. You must first use the p command to enter the correct password before you can edit the startup tag. Although we set the global password, if someone else gets the global password, they can still change the Ubuntu GRUB startup label to change the root password; so we can set the menu password, and it is very easy to set the menu password, we just need to add the password= password on the next line of title, and then save and exit. In this way, even if you have a global password, you must enter a menu password to boot the system. In addition, it is also very insecure to encrypt GRUB directly in plaintext, so you have to use MD5 to encrypt it. Enter grub-md5-crypt enter in the terminal, then the system will be asked to enter the same password twice, and then the system will output MD5 code. You just need to copy the generated MD5 ciphertext, then set the global or menu password according to the format of password-md5 MD5 ciphertext, save the exit, and restart the computer.
Attached:
In fact, when the GRUB startup menu does not work, enter the Ubuntu GRUB command line (press the CTRL+C key), we can also start the system step by step, in fact, in menu.lst, except title is not an instruction, the rest are Ubuntu GRUB instructions, we just need to enter them step by step (wrong to start all over again), and the middle input about kernel and initrd should be completed by using the TAB key, * as long as boot is done.
Resolve the problem:
As mentioned above, when Ubuntu GRUB is not working, you can go to the GRUB command line to solve it step by step, provided you know what the problem is! When you don't know if the problem is at that time, use livecd to enter the system, see what the problem is, and then modify grub.conf or menu.lst. When looking for problems, first go to the terminal under Ubuntu GRUB and use the find / boot/grub/stage1 command to find the real location of the kernel file, and then refer to the following system configuration file / etc/fstab to modify grub.conf or menu.lst. Here * * other problems may also occur when using the UUID; of each file system disk: for example, the kernel is lost; if grub.conf or menu.lst is lost, it is another matter.
The content of the modified menu.lst:
Title Ubuntu 8.04.1, kernel 2.6.24-19-generic
Root (hd0,2)
Kernel / boot/vmlinuz-2.6.24-19-generic root=UUID=2312ec5d-592c-450f-8590-010efd1fd4a6 ro quiet splash i locale=zh_CN xforcevesa
Initrd / boot/initrd.img-2.6.24-19-generic
Quiet
Title Ubuntu 8.04.1, kernel 2.6.24-19-generic (recovery mode)
Root (hd0,2)
Kernel / boot/vmlinuz-2.6.24-19-generic root=UUID=2312ec5d-592c-450f-8590-010efd1fd4a6 ro single
Initrd / boot/initrd.img-2.6.24-19-generic
Title Microsoft Windows XP Professional
Root (hd0,0)
Makeactive
Chainloader + 1
Thank you for reading, the above is the content of "how to set Ubuntu GRUB global password and menu password". After the study of this article, I believe you have a deeper understanding of how to set Ubuntu GRUB global password and menu password. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.