码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu忘记密码

时间:2017-01-09 22:12:47      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:ons   post   roo   pass   密码   his   ssi   sha   pre   

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忘记密码

标签:ons   post   roo   pass   密码   his   ssi   sha   pre   

原文地址:http://www.cnblogs.com/ssMellon/p/6266506.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!