Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if I forget my user name and login password under Ubuntu

Shulou Source: shulou.com Published: 2022-06-01 12:23:26 10月03日 Update

This article mainly explains "how to forget the user name and login password under Ubuntu". The content in 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 forget your user name and login password under Ubuntu".

The ways to change the user name and password are as follows

(1) first Restart system (there is an option after the drop-down in the upper right corner)

(2) long press the shift key until the following menu appears. Select recovery mode, that is, the recovery model.

(3) next, go to the following interface and select Drop to root shell prompt, that is, to obtain root permission.

(4) Type cat / etc/shadow after the # below to view the user name (if you forget the user name)

(5) type in: passwd "yulongsheng" and then type the password twice.

(6) restart the system.

OK, got it.

Thank you for reading, the above is "forget the user name and login password under Ubuntu how to do" the content, after the study of this article, I believe you forget the user name and login password under Ubuntu how to do this problem has a deeper experience, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: User password user name how to do login learning that is content system selection next first capital that is ideas situations articles methods more permissions mode Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL Microsoft vpn Shulou Information