Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3763  / 2 Years ago, mon, april 18, 2022, 7:22:50

I use Xubuntu 14.04 64 bit. I was watching a movie, the desktop froze (as usual duh!), I logged out using a terminal, and couldn't log in to my account after that, I'm using a terminal.



I type my password, it seems to log in, then it logs me out again! I saw many questions like mine, they had brilliant answers:




  • logging in using tty! great idea, except that even in tty, I get the same error wrong password thing, there is no way to run anything that requires sudo!

  • Go to grub and do stuff! Great idea! except that I have hidden grub, it was annoying. Editing it requires sudo. Holding Shift shows loading grub but after that, it continues booting to xubuntu, as if I'm not pressing anything

  • Using live CD? I don't know about that, didn't try it, anyway I don't have the live CD, I gave it away and deleted the ISO, I have other CDs though, Debian, mint, arch and crunchbang.



Update



I had boot repair disk, I used that to repair grub, then went to ubuntu recovery mode and



mount -rw -o remount /
passwd myaccount


I entered my password but I still have the same problem, I have another account myacount2 I can't login to that either, I can only login to guest



Update 2



I managed to fix myaccount2 which is my backup account by reseting the password, but I can't fix the main account, the problem could not be fix by simply resetting the password.



Update 3 I am now able to login to my account through tty, I also created myaccount3 with sudo privileges, I removed lightm and installed GDM, didn't fix it, reinstalled fglrx, didn't fix it, startx didn't work.



Update 4 I can confirm that it is xfce error, because I installed e17 and it's working now


More From » 14.04

 Answers
7

You can login to the account through the tty, but when you try to do a graphical login, you get logged out and returned to the login prompt. You can do a successful graphical login with other accounts. This suggests a problem with a config file in your home directory, possibly your session file.



Try logging in to the account through the terminal and do:



 mv ~/.config/xfce4{,.bak}


This will move your XFCE config to a temporary location. Now try logging in again.



If that does not fix the issue, there is another option that will fix any login problem caused by a misbehaving home directory. Login again at the terminal and do:



mkdir ~/bak
mv ~/.* ~/* ~/bak


Try logging in again. It should now work (we know this should work, because you can already successfully login as another user - all we are doing here is resetting your home directory to a fresh user state).



Now take your files and config in the ~/bak directory and mv anything that you want in your home directory back there. Try to login. It's a process of trial and error - eventually you will find the script or config file that broke the login. Once you have identified the file causing the problem, you can remove that file, and restore all of your other files from ~/bak.


[#25312] Tuesday, April 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mugustered

Total Points: 193
Total Questions: 123
Total Answers: 108

Location: Bermuda
Member since Wed, Mar 22, 2023
1 Year ago
;