linux root password forgotten how to deal with.

This is the place where many people tangled. A server, not used for too long, then there is no file txt, excel password related record those things. Resulting in a lot of information forgotten.

Reference article: https://blog.csdn.net/crankyst/article/details/82964975

Today, I just forget the root password for the server, so, it had to search everywhere. Finally found a viable option.

1, the current existing user login. login

2, reset the current user's password. sudo passwd

3, jump to the root by su root user, just enter the new password set by the user. . Actually the last successful login.

 

Ali cloud my machine is not just a vmware my computer just installed. Installation of a linux ubuntu 64 bits.

 

Guess you like

Origin www.cnblogs.com/a393060727/p/11789084.html