I'd like to change group id of a specific group. There are so may solution for changing the gid of a file or directories. But that's not what I want. Is there a way to do that?
The GID is the primary identifier of the group. As far as the system is concerned, a different GID is a different group. So to change the GID, you're going to have to modify all the places where that GID is used.
You should avoid treating the GID as significant and use group names instead; you can change the name of a group with a single command (on Linux:
However, if you do really want to change the GID, this is how:
The easiest way is to use
Another way is to edit
If the changed group is the main group of a user,