I’m trying to apply NTFS permissions (using xcacls.vbs), but I’m running into difficulties with inheritance. Basically I have 2 departments, dept1 and dept2. The permissions/rules that I want are as follows:
1) Dept1 & dept2 can list folder contents for both departments.
2) Dept1 can move files from dept2 into their folder.
The folder structures look like:
The xcacls.vbs commands I’m using are:
xcacls.vbs .\ /o builtin\administrators /g builtin\administrators:f;f /g domain\dept1:1;1 /g domain\dept2:1;1 /t /s /f
xcacls.vbs .\dept1\ /g domain\dept1:rw;rw /t /s /f /e
xcacls.vbs .\dept2\ /g domain\dept1:r;r /g domain\dept2:rw;rw /t /s /f /e
This all works fine, until a user from dept1 moves files from dept2 into .\dept1\ The dept2 files now in .\dept1\ still have the permissions from .\dept2\ which means that dept1 cannot write to them, and dept2 can read from them. Is it possible to configure the permissions in such a way that when a file is moved from .\dept2\ into .\dept1\ that file inherits the permissions of the parent directory (i.e. .\dept1\)
(The above scenario doesn't happen if the files in question are copied, but thats poor usage of disk space)
Any help is appreciated,