Cloning a user : strange behaviour
by rapetou from LinuxQuestions.org on (#5PNFK)
Hello everyone,
I've just cloned a user now, to do it I created a new user and erase all it's home, then copy the source user to the dest, I did a chown -R ...,
I'm familliar with this.
But in this case, on a Debian Bullseye I have something strange :
Logged with my new user, each time I open a terminal, it comes in the home directory of the source user, same for Libreoffice and all programs.
I checked /etc/passwd and the correct home directory is specified;
If in a terminal I just type cd, it comes in the new user home. normal.
Do you have an idea of what happend please ?
I've just cloned a user now, to do it I created a new user and erase all it's home, then copy the source user to the dest, I did a chown -R ...,
I'm familliar with this.
But in this case, on a Debian Bullseye I have something strange :
Logged with my new user, each time I open a terminal, it comes in the home directory of the source user, same for Libreoffice and all programs.
I checked /etc/passwd and the correct home directory is specified;
If in a terminal I just type cd, it comes in the new user home. normal.
Do you have an idea of what happend please ?