set the HOME, USER and LOGNAME in the env