In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to achieve the prohibition of single-user mode login under the Linux operating system". In the daily operation, I believe that many people have doubts about how to achieve the prohibition of single-user mode login under the Linux operating system. I have consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "how to achieve the prohibition of single-user mode login under the Linux operating system". Next, please follow the editor to study!
If you are not allowed to enter a single user, you need to configure the GRUB password first, just modify / boot/grub/grub.conf or / etc/grub.conf (/ etc/grub.conf is the symbolic link of / boot/grub/grub.conf).
For example: vi / boot/grub/grub.conf enters the configuration file editing. In the splashimage parameter of the next line can be added password= password, save and restart the computer, and then log in to the GRUB menu page will find that this time can not directly use the e command to edit the startup label, you must first use the p command, enter the correct password before you can edit the startup label, but we set up a plaintext password is not very secure.
If someone else gets the plaintext password, they can still change the GRUB startup tag to change the root password.
So 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.
At this point, the study on "how to disable single-user login under the Linux operating system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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
Display startupMainBoard: Startup system software: sd1:/ar2240s-v200r003c01spc900
© 2024 shulou.com SLNews company. All rights reserved.