I am creating local groups in different linux systems with same name but they have different GID in different system.I have a share drive between these three system and if am creating a folder and assigning the group permission on the folder the instance on which the folder is showing Group name but in another two instances its just showing the GID of the group on which instance the folder is created i am confusing here please see the example below
Group_Name GID IP-Address mygroup 571 Host A mygroup 822 Host B mygroup 1023 Host C
If i am creating a folder on share drive between these systems on Host A if i got to share drive in Host B or C i see the folder group name as 571.
As per linux documentation is see that GID is assigned in a range specified and now i am manually going to each linux instance and changing the GID on each server to make sure everything has same ID using below command
groupmod -g 3000 mygroup
I am newbie to linux this is not a best practice i have two queries
1) Is it ok to have two groups with GID in linux system? 2) Is there any automated way to make sure all three Groups get same GID?
Please help me in solving this issue