Ubuntu fail to login after upgrade to 12.04 LTS (Precise Pangolin)

Just upgraded to Ubuntu 12.04 LTS (Precise Pangolin), and it was working somewhat until after a few reboots it would not allow me to login any further from lightdm.

A quick look in /var/log/auth.log showed that I was receiving the error:

lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "XXX"

( Where XXX is my username )

Turns out the reason for this was that somehow my ~/.Xauthority file had its ownership changed to root:root ( dont ask me how )

A quick:

sudo chown XXX:XXX ~/.Xauthority

( Where XXX is my username )

And I was able to login again!

Bookmark the permalink.
There are to Ubuntu fail to login after upgrade to 12.04 LTS (Precise Pangolin)

  1. Thanks for posting this – fixed the same issue for me, running 12.04 beta 2.

  2. x2 – Thanks for posting. Saved me too. Would have been awhile tracking this down. cheers

  3. thks hsppened same in upgrade to 12 04

  4. Greats thanks !
    with your analyse and solution i’m be abble to start my installation of 12.04 on a 10.04 with a specific partionning.
    I’m looking for this solution for 2 days !
    Have a nice weekend

  5. Thanks a lot!
    Fixed the same Problem i was having with 12.10

  6. Thanks for posting this, solved it for me aswell.
    I was hit by this problem after running 12.04 for a while.
    I installed updates this morning and after a reboot was unable to login.

  7. THANKS! This was my issue too…

    I had added (via “xauth add”) my display to a root session (sudo su -) and run firefox as root (I had my reasons at the time)… got out of “sudo su -“… rejiggered some things… logged out, and could not log in again.

    Apparently doing that (running firefox as root) changed the owner of my .Xauthority file to root:root… and mode 400 [Sigh]

  8. Thanks.. after searching for a long time.. this worked like a charm 🙂

  9. Thanks. This fixed my issue too. I got into this situation by setting up GRUB to boot into “text” mode by default, and then by starting X as root on a subsequent reboot. When I decided I didn’t like that, and set it back to boot into the GUI, I couldn’t logon with my account.

  10. Mrityunjoy Chattopadhyay

    Yay !!! you made my day bro. Thanks a lot.

  11. Pingback March 24, 2013: XUBUNTU 12.04 -- SHOULD I UPDATE MY KERNEL AND HOW? I can't login as administrator.

  12. Thanks ! this worked for me too. Seems an update broke this…

  13. Just thank you!!!

  14. I have no words to thank you Its a great lifesaving post for me.

  15. Thanks!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *