Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I'm new to ubuntu.I'm using ubuntu 11.10.

Today I execute usermod -d /etc/skel USERNAME; chown -R USERNAME /etc/skel command by login root user. After a reboot It had changed my home folter path to /etc/skel. Also I had lost my desktop settings too. Can any one let me know how to recover this.

share|improve this question

2 Answers 2

Do this

usermod -d /home/your_home_directory USERNAME

chown -R USERNAME /home/your_home_directory This will recover your settings.

share|improve this answer
Hey thank you very much. It worked – RJ45 Nov 8 '11 at 1:16

Your home directory is set up from /etc/passwd file. Being the root user, you can edit this file to set the home directory. Be sure to relogin afterwards.

share|improve this answer
Thank you very much – RJ45 Nov 8 '11 at 1:17

Your Answer


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.