In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how to break through root users through Grub under the Linux system. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Let's start with the settings of grub, as follows
Default=1
Timeout=10
Splashimage= (hd0,2) / grub/splash.xpm.gz
Hiddenmenu
Title Fedora
Root (hd0,2)
Kernel / vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
Initrd / initrd-2.6.23.1-42.fc8.img
Title Windows
Rootnoverify (hd0,0)
Chainloader + 1
Turn on the computer, on the gurb bootloader menu, select the Fedora entry, and type [e] to enter edit mode.
Meet with a list of pilot projects. Look for sentence lines similar to the following output:
Kernel / vmlinuz-2.6.23.1-42.fc8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
Press the arrow key until the line is highlighted, and then press [e]. You can now add single to the space at the end of the text to tell grub to boot single-user Linux mode.
Press the [Enter] key to make the editing results effective. You will be taken to edit the mode screen, from here, press b, grub will boot single-user Linux mode.
After finishing loading, you will be faced with a shell prompt similar to the following: sh-3.2#
Single-user mode, equivalent to the security mode under Windows, only root has "#"!
Sh-3.2# vi / etc/passwd
Only the first line in passwd is mentioned here
Root:x:0:0:root:/root:/bin/bash
The "x" here means that there is a password in root. Remove the "x" and change it to
Root::0:0:root:/root:/bin/bash
Sh-3.2# vi / etc/shadow
By the same token, modify the first line in shadow
Root:$1 $3YjH4woIcoat 49jmwAEjd9RoJG0g3YO7J.VO13928VO0VO0R099999VO7:
Remove the root password and change it to
Root::13928:0:99999:7:::
Be sure to forcibly save it when you exit here: wq!
In this way, the root user does not have a password. From starting the computer, this breaks through the root users.
This is the end of the article on "how to break through root users through Grub under the Linux system". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.