Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.