I create a folder for example /tmp/foo . I put on her rights 775 . Accordingly, for this I chmod -R 775 /tmp/foo running chmod -R 775 /tmp/foo . I make the user myuser and the group mygroup : chown -R myuser:mygroup /tmp/foo . This is clear and understandable. But there is a task: all new files and folders (conditionally infinite nesting) inside /tmp/foo should inherit the owner and access rights from it. If I create, for example, the file /tpm/foo/bar.txt , it should also have the same rights as 775 and the owner of myuser group mygroup . Even if the file is created by another user from the mygroup group.
I tried to do chmod -R 4775 /tmp/foo anyway, the 755 right created inside the file and the owner of otheruser group otheruser . Names of users and groups conditional. What am I doing wrong?
-moption? Well, OK. And if after creation to makechmodit not that? - Captain Flint