Creating an inherited ACL for a directory
There may be times when you’ll want all files that get created in a shared directory to have the same ACL. We can do that by applying an inherited ACL to the directory. Although, understand that even though this sounds like a cool idea, creating files in the normal way will cause files to have the read/write permissions set for the group, and the read permission set for others. So, if you’re setting this up for a directory where users just create files normally, the best that you can hope to do is to create an ACL that adds either the write or execute permissions for someone. Either that or ensure that users set the 600
permissions settings on all files that they create, assuming that users really do need to restrict access to their files.
On the other hand, if you’re creating a shell script that creates files in a specific directory, you can include chmod
commands to ensure that the files get created with the restrictive...