My OS is Ubuntu 14.04 64-bit, and kernel is 3.13.0-30-generic. I forget my user account password and now want to get into GUI desktop.
I know from the Internet that we can reset password by single user mode. Usually this is done by editing grub2 items, like this "How do I boot into single-user mode from GRUB?", and this "Ubuntu 12.04 Grub to boot into single user mode "
From the links, I can renew account password under shell, reboot, and login into desktop with the new password. But I don't want to renew the password, I simply want to login to the desktop.
I have tried the command startx
but it failed giving the following error:
error in locking authority file .Xauthority
I have searched the directory "root" and found no such file.
How can I achieve my goal? Is it possible?
EDIT:
Single user mode runs at level 1 which is text mode. If I need X window, Linux must run at level 5.
So I cannot get into GUI desktop at single user mode.
But why I cannot use command startx at single user mode, remains to be solved.
EDIT:
I am at root text mode (at runlevel 1 of course) now through the reference link above. I can change any password now and reboot into GUI. But I would like to get into GUI by a "GEEK" way. That is bypassing the login screen of GUI and get there directly without password.