In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to find the Linux Root 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 find the Linux Root password".
First, when the system enters the single-user state, use passwd root to change it directly.
1 、 lilo
Type linux single at the lilo: prompt
The screen shows lilo: linux single
Enter can directly enter the linux command line
# vi / etc/shadow
Delete the * line, that is, the content after root: and before the next: in the line that begins with root, and the * line will be similar to root::. , save
# reboot restart, root password is empty
2 、 grub
When the grub screen appears, use the up and down keys to select the item that normally starts linux, and then press the e key
Use the up and down keys again to select the item that normally starts linux, and then press the e key
Modify the command line you see now and add single. The result is as follows:
Kernel / boot/vmlinuz-2.4.18-14 single ro root=LABEL=/
Enter and return, then press b to start, and you can directly enter the linux command line.
# vi / etc/shadow
Delete the * line, that is, the content after root: and before the next: in the line that begins with root, and the * line will be similar to root::.,.
# reboot restart, root password is empty
Second, use the installation CD to boot the system, perform linux rescue status, and connect the original / partition, as follows:
Cd / mnt mkdir hd mount-t auto / dev/hdaX hd cd hd chroot. / passwd root
Third, remove the hard disk of this machine and mount it to other Linux systems, using the same method as the second one.
Thank you for your reading, the above is the content of "how to find the Linux Root password". After the study of this article, I believe you have a deeper understanding of how to find the Linux Root password, and the specific use needs to be verified in practice. 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.