Default Permissions to Deny Access to User Group on New Folder

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
joshshed
First post
Posts: 1
Joined: Thu Dec 08, 2022 9:51 am

Default Permissions to Deny Access to User Group on New Folder

Post by joshshed »

Hi,

I've got a scenario that I'm not sure if its possible to resolve.

I have a shared folder with read/write for two user groups (All Staff + Directors). For the Majority of folders the All Staff user groups permissions is set to Deny as we only want All Users group to have access to a single sub folder. This all works absolutely great.

However my issue is that when I create a new folder the default permissions are inherited from the parent folder. So we then need to manually set the permissions on the new folder to Deny access to the All Users group.

'Shared Folder 1' | All Staff (R/W) Directors (R/W)
--- All Users Folder 1 | All Staff (R/W) Directors (R/W)
--- Directors Folder 1 | All Staff (Deny) Directors (R/W)
--- Directors Folder 2 | All Staff (Deny) Directors (R/W)
--- New Directors Folder <-- new folder that inherits parent permissions by default.


I appreciate there would be a better folder structure that would make this possible, but thats not practical in the current scenario for the business.

I was wondering if there was a way to run a one off process after a new folder has been created to amend the permissions and deny access on the new folder. This would seem like something that might be possible, but I'm not sure where to start on setting this up.

Any guidance appreciated.
Post Reply

Return to “File Sharing”