I created a new user account from System Settings > User Accounts.
I can log in to new user account from the terminal but I can't log in to user account from GUI.
When I try to log in to the newly created user account from GUI it doesn't show any error and goes back to the login window. (When I type a wrong password it shows the incorrect password error but when I enter the right password, it simply goes back to the login window without any message.)
I am using Ubuntu 14.04.4 LTS
~/.Xauthority– Apr 16 '16 at 07:00getent passwd <USERNAME>andsudo getent shadow <USERNAME>(obfuscate the password hash if it exists)? Did you try any of the solutions in https://askubuntu.com/questions/223501/ubuntu-gets-stuck-in-a-login-loop ? – David Foerster Apr 24 '16 at 16:22