別人剛裝的Ubuntu16.04 sever,root忘記了,哎。
1.進入recovery mode
開機選擇高級模式-> recovery mode->root
2.修改密碼:
#> passwd root
顯示錯誤:
root@username-PC:~# passwd username
Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
網上說是因為recovery mode下的根分區是以只讀的方式掛載的,所以需要重新掛載:
#> mount -rw -o remount /
OK 問題解決
原文鏈接:http://askubuntu.com/questions/91188/authentication-token-manipulation-error