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!
Thanks for posting this – fixed the same issue for me, running 12.04 beta 2.
x2 – Thanks for posting. Saved me too. Would have been awhile tracking this down. cheers
thks hsppened same in upgrade to 12 04
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
Thanks a lot!
Fixed the same Problem i was having with 12.10
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.
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]
Thanks.. after searching for a long time.. this worked like a charm 🙂
THANKS!!!
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.
Yay !!! you made my day bro. Thanks a lot.
Pingback March 24, 2013: XUBUNTU 12.04 -- SHOULD I UPDATE MY KERNEL AND HOW? I can't login as administrator.
Thanks ! this worked for me too. Seems an update broke this…
Just thank you!!!
I have no words to thank you Its a great lifesaving post for me.
Thanks!!!!