I would like to reinstall debian on a new pc but keep the home partition. I know that during installation I can indicate the home partition but how do I manage the uid / gid of the home directories after the installation? If I create all the users I can't be sure they have the same uid/gid of the old system so the permissions of the home dir will result messed up.
What is the right way to proceed?
Maybe after installation can I copy
/etc/shadow from the old system to the new system?