1

after typing my password and press enter it takes me back to the page and ask to me to enter my password again I can login as a guest and am able to login in the terminal ( ctrl+alt+F1 )

but not with the graphical interface

mohammad
  • 19
  • 1

2 Answers2

1

When logged in to the terminal look for a file in home directory called .Xauthority (hidden file) use ls -al. If the file is owned by root use sudo chown <user>:<user> .Xauthority.

Dan
  • 6,753
  • 5
  • 26
  • 43
  • 1
    what does the command chown user:user .Xauthority do? – Alvar Jun 11 '13 at 18:35
  • it says no such file or directory – mohammad Jun 11 '13 at 18:43
  • It changes the ownership of the file to your group and your user. By default every user has their own group that is named after their username. Every file has a group that owns it as well as a user. To learn more check out man chown. Is the .Xauthority file owned by root? – Dan Jun 11 '13 at 18:44
  • i am nor sure how to check that :) – mohammad Jun 11 '13 at 18:53
  • When in the home directory run ls -al you should see a file -rw------- 1 myuser myuser 179 Jun 11 14:56 .Xauthority, if instead of saying "myuser" it says "root" then run the chown command. I should note Alaa's method should work just as well, if it is easier for you. Instead of changing the ownership it will force the creation of a new file with the correct ownership. – Dan Jun 11 '13 at 18:57
  • no it's saying baja baja < which is my username

    but there's a problem

    in the last 2 lines it says .xsession-errors .xsession-errors.old

    – mohammad Jun 11 '13 at 20:19
  • Those files are almost always there, but they are worth a look, maybe they will give a clue to the problem. I would try Alaa's suggestion next. – Dan Jun 11 '13 at 20:33
  • tried that one but didn't work :'( – mohammad Jun 11 '13 at 22:34
0

You may have a problem with the keyboard/language settings? It seems the initial installation determines the layout for the login page, and even if you have changed the default keyboard layout, the login keyboard layout does not change with it. This happened to me and to Vic. Since 11.10 lightDM is used and it is described here. For 12.04 the procedure is described here, but it seems to be buggy.

vinnief
  • 101