0

I have a Ubuntu running on a virtual box. I cannot log into the UI with the valid username and password. It just shows black screen and returns to the login page again. Meanwhile the Guest Session is working fine. What can I do to solve the problem ?

2 Answers2

0

Based on your description, it sounds like you ran startx as root, which screwed with permissions on one or more files.

You'll need to get to a text console by pressing a key combination such as: Ctrl + Alt + F1 (any F1-F6 key will work). Next, log in as yourself.

Please check ownership on these two files:

    ls -l ~/.{ICE,X}authority

My guess is that at least one is owned by root, and not you. Change this:

    sudo chown user:user ~/.Xauthority (substitute user for your username).

Then reboot with:

    sudo shutdown -r now .

That should fix the issue for you. Here's more info on xauthority.

marshki
  • 336
0

Try to move your cache directory

mv ~/.cache ~/.cache.old

If it's not working, it can be compiz, so move .compiz folder too.

mv ~/.compiz ~/.compiz.old
Inglebard
  • 195
  • 1
  • 9