首页 > 系统服务 > 详细

ubuntu忘记密码

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!