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:
|
||||
|
|
|
The easiest way is to use Another way is to edit If the changed group is the main group of a user, |
|||||||||
|
|
find /path -group foo -print0 | xargs -0 chgrp bar |
|||||
|
