This is a useful unix command to copy the file / dir owner permissions to the group:
find * -exec /bin/sh -c 'chmod g+`ls -ld "{}" | cut -c2-4` "{}"' \;
As pointed out in the post below, chmod actually has built in support for this operation:
chmod g+u file
chmod actually has built in support for this operation:
chmod g+u file
This command will make the group permissions of “file” be the same as user permissions. If you want to do it recursively from a directory, just do:
chmod -R g+u .