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 have changed my home folder name through command mv olderFolder newFolder and then restarted, but not able to login. What step did I miss?

share|improve this question
Normally, one does not rename the home folder. Why did you do it, in the first place? What problem are you trying to solve? – ignis Jul 24 '13 at 8:02

After rename your home directory you should still tell linux about your new home directory This can be done by editing /etc/passwd file

Just open that file and change /home/olderFolder to /home/newFolder

For Example:


mitesh:x:1000:1000:Mitesh Shah:/home/mitesh:/bin/bash


mitesh:x:1000:1000:Mitesh Shah:/home/miteshshah:/bin/bash
share|improve this answer

It is not a good idea (as you found out) to rename your home folder.

If you can, log in as root and rename your folder by issuing

sudo mv /home/newFolder /home/olderFolder

If you don't have a root login, get an Live CD, boot it, don't install but simply 'repair' an existing installation. Mount the drive and rename the home folder similar to what is shown above.

share|improve this answer

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.