How does one change user's home directory in Ubuntu 9.04?
Running
sudo usermod -d new_home_dir username
will change your home directory to new_home_dir
and will also update the system file that stores the location of your home directory (/etc/passwd
).
If you also want to move all files from your current home directory, use:
sudo usermod -d new_home_dir -m username
I have not tried this, but I think you can change it in /etc/passwd.