ubuntu忘记密码

Posted 空山皓月

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu忘记密码相关的知识,希望对你有一定的参考价值。

Do these two things just to make sure:

mount -o remount,rw /

This first part remounts the root partition as read/write since it was only in read mode. It actually dismounts the root partition and then mounts it again as read/write.

Then do this:

chmod 640 /etc/shadow

Then do the sudo passwd USER. It should work after that. This part gives the correct permissions to the shadow file.

 

以上是关于ubuntu忘记密码的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu中忘记root密码的解决方法

ubuntu系统密码忘了怎么办

Ubuntu 忘记密码的处理方法

Ubuntu root 密码忘记-恢复

Ubuntu忘记密码

虚拟机里的Ubuntu忘记了密码,怎么修改密码