忘记ubuntu 14.04密码,如何修改密码
- 以recovery mode启动ubuntu,进入root 模式。这样可以“以root用户运行shell”
- 此时文件系统是read-only状态,需要重新挂载,用如下命令:
mount -o remount, rw /
- 修改密码吧:
passwd "用户名"
- 重启之后会发现提示“the password you use to log in to your computer no longer matches that of your keyring”.在shell中执行
rm ~/.local/share/keyrings/login.keyring