Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I upgraded from Ubuntu 10.04 to 12.04 and it went fine. After restart, when I try to log in from my root user it shows a command screen in a split second and then returns back to the log in screen which shows all users. I have even tried to test logging in with other users and it is working fine.

I guess there is some problem with home folder of my user or something. Kindly help me out otherwise my only hope is to make a fresh install from a CD which I am avoiding.

Thanks in advance.

share|improve this question
    
When you say root user, do you mean the following account: root@your-hostname? Or an account that is part of sudoers (i.e., accounts that can't execute sudo)? –  oaskamay Mar 14 '13 at 15:20

1 Answer 1

This solution originally by actionparsnip worked for me:

Press CTRL+ALT+F1

Log in with you user name and password

Run the following command: sudo chown -R $USER:$USER $HOME

Press CTRL+ALT+F7
Try to log in
share|improve this answer
1  
Recursively changing file user/group ownership should be done with very much care. Please don't suggest this out of nowhere. –  gertvdijk Aug 14 at 15:00
    
why don't you also tell what are the consequences of doing this? And give the solution to this problem instead of preaching. –  user1595633 Aug 14 at 15:17
    
The answer is correct. It can be made clear --only /home/<user>/.Xauthority files needs to be chowned. –  Jayan yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.