Having the following directory structure
[sr@server directory]$ tree . ├── folder1 │ ├── fileA │ └── fileB └── folder2 └── fileC 2 directories, 3 files
I want to set a default facl on folder1 and folder2 that, for the user
jim has the following permissions
. ├── folder1 --x │ ├── fileA r-- │ └── fileB r-- └── folder2 --x └── fileC r--
I.E. all files have
r-- and all folders have
Any files created under folder1 or folder2 should be given the
r-- permission for user
jim, any folders should be given the
--x permission for user
I can set the permissions so folders created have
r-x and files have
r-- but I can't figure out a way to set the default permissions so folders don't get the read permission.
While I can manually set the permissions for the currently existing files I want those permissions to apply as defaults to all newly created files and folders.
2.2.49 on RHEL 6.4