Title says it all, how do I change the home directory of the 'root' user in Ubuntu 12.04?
Here are the instruction, but be sure to know what you're doing.
On every *nix system you'll find a file called
/etc/passwd which lists all users and some settings. Here is the syntax of that file:
So, for example, you'll find:
Which means the user is called root, the password is hidden (it's on
/etc/shadow), uid is
0, gid is
0, no additional info, the home directory is
/root and the default shell is
Edit that file and change the home directory.
However, I don't see any reason to do it.