后來還是要改了. 不想重新弄什么的了..百度了下怎么改密碼...然后就有一篇文章說是在進入系統前進入高級模式..然后里面有root的單用戶模式..-----kohna,
1).在啟動項選擇:Advaned options for Ubuntu.
2).然后 選擇:Ubuntu ,with Linux 3.13.0-24-generic (recovery mode),
3). 等待加載完成..你將看到"Recovery Menu (filesystem state :read-only)"
4).選擇root Drop to root shell prompt 就會進入單用戶模式了..
然后是修改密碼.
輸入passwd user,回車后就出現
authentication token manipulation error.
passwd unchanged..
接下來我就在不斷的嘗試....
找了很多文章看...CSDN,網易的什么都有
后來找到了一篇外國人寫的...
http://linhost.info/2013/08/passwd-authentication-token-manipulation-error-ubuntu/
You probably encountered this error while trying to reset the password on a Ubuntu system.
root@u13-04:~# passwd nyuserEnter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged
This is the result of trying to work on a file system while mounted as read-only. The solution is a simple one. Before making changes to the users password mount the filesystem as read-write which allows for the necessary changes to be made.
Now try to change the users passwords again.
Retype new UNIX password:
passwd: password updated successfully
關鍵代碼是:mount -o rw,remount / .
輸入后就可以改了..注意..輸入后什么也不會提示.
Ubuntu 14.04中root 密碼忘記解決方法
方法一:
如果用戶具有sudo權限,那么直接可以運行如下命令:
#sudo su root
#passwd
#更改密碼
或者直接運行sudo passwd root命令就可以直接更改root密碼。
有關sudo su的區別:
1.共同點:都是root用戶的權限;
2.不同點:su僅僅取得root權限,工作環境不變,還是在切換之前用戶的工作環境;sudo是完全取得root的權限和root的工作環境。

www.linuxidc.com@linuxidc:~$ sudo su root
[sudo] password for www.linuxidc.com:
root@linuxidc:/home/www.linuxidc.com# passwd
輸入新的 UNIX 密碼:
重新輸入新的 UNIX 密碼:
passwd:已成功更新密碼
root@linuxidc:/home/www.linuxidc.com#
方法二:
如果用戶不具備sudo權限,則方法一不能用,並需進入GRUB修改kernel鏡像啟動參數。本文使用的Ubuntu版本為14.04.4,具體過程如下為:
1、重啟電腦長按shift鍵直到進入下圖進入GRUB引導模式,選擇第二行Ubuntu 高級選項, 選中直接回車 ,如下圖:
2、進入如下畫面,看到里面有一些選項,這時千萬不要按回車鍵,按e進入(recovery mode) 編譯kernel進行啟動參數

3、關鍵的時候到了, 倒數第四行,會看到一行Linux /boot/vmlnuz-4.2.0-27-generic .......ro recovery nomodeset,
刪除recovery nomodeset

3、然后再剛才刪除的后面添加 quiet splash rw init=/bin/bash。然后按F10, 啟動。

4 如果一切爭取,運行后系統直接進入root mode,輸入:passwd,系統會提示你輸入新的密碼,結束。

