Ubuntu 14.04无法使用密码登录系统。

时间:2017-07-30 16:04:30

标签: ubuntu-14.04

我正在使用ubuntu 14.04',但今天当我启动桌面时,它没有接受我的密码。也无法使用来宾登录。但是当我给cntrl alt f2时,我能够使用凭据登录。我给的密码正确。任何人都可以帮我登录我的桌面

1 个答案:

答案 0 :(得分: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