linux modify user and and give homer directory code example Example: assign home directory to user linux usermod -d /path/to/dir username