In today's ride on my desktop- I found this issue.. which is so new to me.. My Ubuntu 12.04 is showing login screen again and again even after giving correct username/password..
By digging the logs, These lines from /var/log/auth.log gave some clues..
These steps resolved the issue..
4. Now press Alt+Ctrl+F8 to get back to graphical interfaceBy digging the logs, These lines from /var/log/auth.log gave some clues..
Here:
- Aug 19 13:02:00 desktop lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
- Aug 19 13:02:01 desktop lightdm: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "shivaram"
- Aug 19 13:02:01 desktop dbus[901]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.23" (uid=104 pid=1582 comm="/usr/lib/indicator-datetime/indicator-datetime-ser") interface="org.freedesktop.DBus.Properties" member="GetAll" error name="(unset)" requested_reply="0" destination=":1.13" (uid=0 pid=1257 comm="/usr/sbin/console-kit-daemon --no-daemon ")
- Aug 19 13:02:06 desktop lightdm: pam_unix(lightdm:session): session closed for user lightdm
- lightdm is the default Display Manager that's provided by Ubuntu 12.04..
- shivaram is the username.
These steps resolved the issue..
- Press Alt+Ctrl+F1 to get a terminal i.e tty1
- login with your credentials.
- execute the below command by replacing your username.
- sudo chown yourusername:yourusername ~/.Xauthority
.Xauthority file takes care of authentication for X Windows or simply GUI. By changing the owners of the file, we can get authenticated.
And now, my graphical session is letting me inn.. :)
Thank you so much for posting this solution. I had the same problem and have been racking my brain searching all over the internet.
ReplyDeleteThank you!
You are welcome !
Delete