In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to change root password and how to retrieve root password under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Log in as root, execute:
# passwd user name (change password)
# useradd user name (add user)
Specific examples are as follows: [root@bogon ~] # passwd root
Changing password for user root.
New UNIX password:
BAD PASSWORD: it is based ona dictionary word
Retype new UNIX password:
Passwd: all authentication tokens updated successfully.
The method of retrieving root password under linux
=
Linux's root enjoys the supreme power. Once the root password is forgotten or stolen, it is a very headache. How to find the root password? I summarize it as follows:
(1) password cracking of Linux system
1. Press e on the grub options menu to enter edit mode
two。 Edit the kernel line / init 1 (or / single)
3. Press B to restart
4. After entering, execute the following command
Root@#passwd root (configure the password for root)
Enter new unix password: enter a new password
Root@#init 6
=
(2) password cracking of debian linux system
1. In the grub options menu 'Debian GNU/Linux,... (recovery mode)', press e to enter edit mode
two。 Change the ro single of the kernel line to rw single init=/bin/bash, and press b to restart
3. After entering, execute the following command
Root@ (none) # mount-a
Root@ (none) # passwd root
Root@ (none) # reboot
=
(3) password cracking of Freebsd system
1. Boot to the boot menu
two。 Select each item (press 4) to enter single-user mode
3. Enter a list of commands after entering
Root@#mount-a
Root@#fsck-y
Root@#passwd (change password command)
This is the end of the content of "how to change the root password and how to retrieve the root password under Linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.