I want all the newly created or moved files in a directory to inherit the permissions from the parent directory.
For that I did:
chown -R myuser:myuser /home/directory/ chmod -R 2774 /home/directory/ chmod g+s /home/directory/
So all the files inside that directory have the correct group, but not the correct permissions: 0644. Is there a way to keep that 2774 permissions for all files so the group has access to write/change files ?