How do I fix a gid on files moved to a new server

Posted by Tim Abell on Server Fault See other posts from Server Fault or by Tim Abell
Published on 2010-04-27T14:35:36Z Indexed on 2010/04/27 14:44 UTC
Read the original article Hit count: 323

Filed under:
|

Hi,

I've copied a folder of data from one linux server to another via a tarball.

The group ids (GIDs) don't match up on the two servers, so I now have files that look like

-rw-rw-r--   1 tim  1013   88 2008-11-14 10:18 config

There is a mixture of group ownerships in the folder, and I want to keep them owned by different groups on the same server, so I can't just use chgrp -R.

How do I change all files/folders with GID 1013 to another group, without affecting other files/folders?

Thanks

© Server Fault or respective owner

Related posts about linux

Related posts about file-permissions