Hi, I'me doing a Centos 6 to 7 upgrade. I am keeping the home partition from the CentOS install as it has a lot of data and I wish to keep the group and user permissions (including uid/gid/user/group)..
I know I can user -gid and -uid options for adduer but according to docs
Code: Select all
Use the -g (--gid) option to create a user with a specific initial login group. You can specify either the group name or the GID number. The group name or GID must already exist.
The reason I need to do this is that the data in /home is actually a backup of a production server (which has actually died).
Is there a way of doing this?
Ben