Login goes back to login screen

30,724

I don't know, would it create any security problem but using this command can solve your problem

sudo chown 777 .Xauthority

Share:
30,724

Related videos on Youtube

Paulo Nesello
Author by

Paulo Nesello

Updated on September 18, 2022

Comments

  • Paulo Nesello
    Paulo Nesello over 1 year

    Ubuntu dont let me login in a graphic session. I type the password (it detects if it's wrong) and even typing it wright the system take me again to login screen.

    I've found this other question and run the pastebin command, getting this URL:

    http://paste.ubuntu.com/6530253

    I've also checked my Home permissions, it's rwx for the owner (me :D)

    Thank!

    EDIT: when I login in tty1, bash returns an error mensage in the file /etc/profile. Ubuntu had an old copy of this file, so when I use the old copy, it works just fine. Only problem, the upper and left bars (with programs, open things, etc.) didnt show up. I'll try get these back later

    • Eliah Kagan
      Eliah Kagan almost 9 years
      "when I login in tty1, bash returns an error mensage in the file /etc/profile" What is the complete and exact text of that error message, and do you have any reason to think this error is related to your inability to log in graphically? (I suppose it could be--with most desktop environments, ~/.profile does get sourced on graphical login.) When you use the backup of .profile that doesn't produce the error, does that appear to affect the behavior of the graphical login screen in any way, when you try to log in?
  • g_p
    g_p over 10 years
    or better use this 'sudo chown youruser:yourgroup ~/.Xauthority'
  • Paulo Nesello
    Paulo Nesello over 10 years
    Guess it's not an problem with Display Manager. lightdm and gdm both dont allow login :(