2017-07-30 53 views
-5

我在ubuntu 14.04上工作,但是今天當我啓動我的桌面時,它並沒有帶上我的密碼,也無法使用guest登錄。但是,當我給予Ctrl Alt Alt我可以登錄憑據。我正在給出正確的密碼。任何人都可以幫助我登錄到我的桌面Ubuntu 14.04無法使用密碼登錄系統。

回答

0

您是否看到一條錯誤消息,指出登錄即使在系統重新啓動後也不正確?如果「是」它的一個可能的/ etc/password中損壞(這同樣是可能性之一)

解決方案 - 啓動進入單用戶模式,備份的/ etc/passwad-到/ etc/passwd文件。

Steps for the above process 

    1. Restart the machine and in the very inital state press any key to enter into the GRUB menu. Select your os from the list. 
    2. Select kernel, press e to edit parameteres. Add 1 after a space to boot in single user mode 
    3. Now copy the backup of /etc/passwd which is /etc/passwd-. 'cp /etc/passwd- /etc/passwd' 
    4. enter commant 'init 5' to enter graphical mode 
+0

我沒有看到任何錯誤消息。輸入密碼後,我點擊輸入它嘗試登錄,並再次出現相同的登錄屏幕沒有錯誤消息。同樣也發生在Guest用戶身上。只有當我嘗試打錯密碼它說登錄不正確。 – Hara

+0

我不想重新安裝Ubuntu,因爲我沒有采取備份。您能否讓我知道在上述情況下是否有恢復數據的選項。 – Hara

+0

@Haraharamahadev - 不是最好的解決方案,但你可以嘗試在單用戶模式下重置密碼。如果您覺得值得試用,也可以嘗試解決/ etc/passwd文件。 –