I'm looking to apply some new NTFS permissions to a large directory structure, and have found that performing this operation from a Windows machine can be a very time-consuming process.
Therefore I thought that the procedure could be a lot quicker from the Isilon shell, using chmod.
The issue I've found is that "chmod -R" appears to add permissions to each filesystem object explicitly, not implicitly, as Windows does.
i.e. If I start with a directory, "test_dir" with the permissions:
$ ls -led test_dir
drwxrwx--- + 5 johnb domain users 59 Nov 20 09:31 test_dir
OWNER: user:johnb
GROUP: group:domain users
CONTROL:dacl_auto_inherited,sacl_auto_inherited
0: group:smbroots-fullcontrol allow inherited dir_gen_all,object_inherit,container_inherit,inherited_ace
Then, create some directories/files underneath it:
$ mkdir -p test-dir/1/2/3
Then, apply a new permission, using "chmod -R":
$ chmod -R +a user joeb allow generic_all,object_inherit,container_inherit test_dir
I then find that the 'joeb' permissions have been applied, but explicitly, not using any inheritance:
$ ls -led test_dir/1
drwxrwx--- + 3 johnb domain users 19 Nov 20 09:31 test_dir/1
OWNER: user:johnb
GROUP: group:domain users
CONTROL:dacl_auto_inherited,sacl_auto_inherited
0: user:joeb allow dir_gen_all,object_inherit,container_inherit
1: group:smbroots-fullcontrol allow inherited dir_gen_all,object_inherit,container_inherit,inherited_ace
Is there any way to recursively apply permissions, with inheritance?
Cheers,
John