2017-07-30 54 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文件。 –