Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu18.04 server password forgotten or tampered with how to reset the password

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about how to reset passwords on Ubuntu18.04 servers when they are forgotten or tampered with. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Step one:

First of all to confirm their own machine how to enter GNU GRUB, this step is very important, many machines are booting and pressing Shift is not loose, however, our machine needs to press Esc, and had better not press and hold Esc not loose, however, this is easy to count into the GRUB command line input interface, so it is best to keep clicking Esc, see the black screen to let go, enter the interface shown below, select "Advanced option for Ubuntu", click enter.

Step 2:

Select with (recovery mode), do not click enter, do not click enter, press the E key to go to the next interface.

Step 3:

Change "recovery nomodeset" to "quiet splash rw init=/bin/bash" in the red box

Step 4:

After pressing F10 or Ctrl+x, the following interface appears. Enter passwd on the command line and then change the password.

Step 5:

After shutting down or forcing the shutdown, you can log in with the newly set password.

Thank you for reading! On "Ubuntu18.04 server password forgotten or tampered with how to reset the password" this article is shared here, 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, you can share it out for more people to see it!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report