Complex Folder Permissions

This article explains inherited and explicit permissions for parent and sub-folders.

Solution

Shared folders and sub-folders use access rights that apply to all users that aim to access that particular location.

To make the settings of a folder apply to all of its sub-folders and contents the following procedure must be used:

1. Right-click the designated folder.

2. Select the "Sharing" option from the menu.

3. Check the "also apply this permissions to subfolders" option at the bottom of the pop-up window.

4. Click the "Save&Close" button to apply the changes.

NOTE: When this option is set, all the contents of the folder will have the same permission settings as the parent folder.

In addition, the sub-folders can have other permissions set. These are considered to be explicit settings that will over-write the ones defined on any other parent folder. Any explicit setting can also be applied to all sub-folders. This will generate inherited settings for the sub-folders that are made up of the initial rules set to the top most folder and the other settings applied on the lower levels.

The settings will still be considered inherited and can be overridden by explicit rules for that folder.

If a sub-folder has explicit permissions and the "also apply this permissions to subfolders" option is not selected, the settings will apply only to that folder and not its contents. If there are any inherited settings from a higher folder in the hierarchy passed down to all folders they will also apply to the contents of the folder with explicit settings.

Example:

W - Write permission
R - Read permission
S - Apply to subfolders

ParentFolder (none)
(Explicit: none)
(Inherited: none)
   |
   |____________________
       |                |
       |                |
   Child-1 (R/S)     Child-2 (W/S)
(Explicit: R/S)    (Explicit: W/S)
(Inherited: none)  (Inherited: none)
         |
         |______________________________
                |                       |
                |                       |
       Child-1-1 (R/W/S)         Child-1-2 (R)
       (Explicit: W/S)         (Explicit: none)
       (Inherited: R)           (Inherited: R)
                |                       |
                |                       |
        Child-1-1-1 (R/W)        Child-1-2-1 (R/W)
        (Explicit: none)          (Explicit: W)
        (Inherited: R/W)          (Inherited: R)

WARNING:
Whenever a complex permissions setup is used, special care must be advised to the recursive settings used.
OS: LinuxWindowsFreeBSDNetBSDOpenBSDSolaris
Distros: WindowsDEB based distros amd64