apycot-moved #35218 ensure that $HOME directory is adjusted with the logged user [open]

$HOME use the default value "/root" even after changing the user. We should override the env variable to avoid permission errors.

priorityminor
typebug
done in<not specified>
closed by<not specified>