I have a directory with these permissions:
When I copy an executable into it, the executable gets these permissions:
I am happy with the owner set to me and the group inherited from the directory but it has r-x permissions for the group while I would want it to inherit the permission to write for the group from the directory - rwx.
I guess being the owner I can chmod after copying but I would want to avoid this extra step. Is there a way to achieve this on copying?
-
Code:
drwxrwxr-x 2 root mygrp 512 Dec 10 20:35 mydir
When I copy an executable into it, the executable gets these permissions:
Code:
-rwxr-xr-x 1 sergei mygrp 111968 Dec 10 21:04 myprg
I am happy with the owner set to me and the group inherited from the directory but it has r-x permissions for the group while I would want it to inherit the permission to write for the group from the directory - rwx.
I guess being the owner I can chmod after copying but I would want to avoid this extra step. Is there a way to achieve this on copying?
-