Results 1 to 6 of 6

Thread: Can't login (keep getting redirected to login after entering correct login)

  1. #1
    Join Date
    Oct 2011
    Beans
    4

    Can't login (keep getting redirected to login after entering correct login)

    Hi guys,

    I'm having an issue here, after i enter my correct login info, my screen gets black for 2 seconds and then i'm redirected again to login screen and asked to login again and so on...
    I logged in tty and entered 'startx' but i get this error

    xauth: error in locking authority file /home/myusername/.Xauthority

    Before getting this problem, i had my caps lock on and missed a few times my login on text mode, then i rebooted and this happened.

    Can't use the system because of this...

    Can someone help me?
    Thanks
    Last edited by THESEXPISTOL; November 5th, 2011 at 04:55 PM.

  2. #2
    Join Date
    Oct 2011
    Beans
    4

    Re: Can't login (keep getting redirected to login after entering correct login)

    I've removed .Xauthority and now when i login the login menu gets stuck and a terminal opens in the corner of the screen with my user logged in.

    i then type
    myusername$ startx

    and the output is:

    X: user not authorized to run the X server, aborting.


    Please help!

  3. #3
    Join Date
    Oct 2011
    Beans
    4

    Re: Can't login (keep getting redirected to login after entering correct login)

    Is there some way through ubuntu livecd to reinstall the system without losing the files in home folder?

  4. #4
    Join Date
    Mar 2012
    Beans
    58

    Re: Can't login (keep getting redirected to login after entering correct login)

    Try:
    Code:
    sudo startx

  5. #5
    Join Date
    May 2010
    Location
    Plovdiv,Bulgaria
    Beans
    2
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Can't login (keep getting redirected to login after entering correct login)

    If you are with lightdm, try switch to gdm with
    Code:
    sudo service lightdm stop
    sudo service gdm start
    It works for me and it's a temporary workaround

  6. #6
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Can't login (keep getting redirected to login after entering correct login)

    it sounds like your ~/.Xauthority file ownership or permissions got messed up

    go into one of the virtual terminals by hitting Ctrl-Alt-F1 (or Ctrl-Alt-F2 etc), login as your normal user, and type

    Code:
    sudo /home/myusername/.Xauthority
    or
    Code:
    sudo rm ~/.Xauthority
    then

    Code:
    exit
    and then Ctrl-Alt-F7 to get back to the GUI login screen, and try to log in normally again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •