I have a Windows Server 2008-r2 machine with a share. I have one admin user and 3 standard users accessing this share.
I have an application being run by the admin user (but not run as Administrator) that makes new directories and copies files into those directories.
The share gives everyone read access and Administrators full control. In addition, security for the share gives Read & execute permission to the 3 standard users. When adding the permissions for the 3 standard users, I did a "Replace all child object permissions with inheritable permissions from this object". Fact is I tried without and then tried with.
Ok. Here's my problem:
At the time I give permissions, all 4 users have access to all folders and files. However, when the app makes a new folder and then copies files into it, the 3 standard users have proper permissions for the folder but no permissions on the files (Effective permissions on the files show as none). If I redo permissions, then the files I had problems with work, but again, new files do not. I did change 1 of the 3 users into an Admin and confirmed that all file access works as expected.
So what am I missing? I assume it has something to do with copying the files, as creating the folders give them the proper permissions.
Update: based on @Zordache's comments, I have done the following:
- Added a group, added 3 users to that group, removed individual permissions.
- Gave that group similar permissions on the directories the files were being moved from.
So I have now confirmed that permissions are correct on a file moved from an input directory. I have also confirmed that new files coming in behave properly. Problem solved.