Privacy and Security Enable or Disable Inherited Permissions for Files and Folders in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:

Users_header.webp

This tutorial will show you how to enable or disable inherited permissions for files and folders in Windows 10 and Windows 11.

You can set permissions for files and folders on NTFS and ReFS volumes. These permissions allow or deny access to the files and folders.

Every container (ex: folder) and object (ex: file) on the PC has a set of access control information attached to it. Known as a security descriptor, this information controls the type of access allowed to users and groups. The security descriptor is automatically created along with the container or object that is created.

There are two types of permissions: explicit permissions and inherited permissions.
  • Explicit permissions are those that are set by default on non-child objects when the object is created, or by user action on non-child, parent or child objects. Explicit permissions take precedence over inherited permissions. Enabling or disabling inherited permissions for a file or folder will not affect explicit permissions for the file or folder.
  • Inherited permissions are those that are propagated to an object (ex: file or folder) from a parent object (ex: drive or folder). Inherited permissions ease the task of managing permissions and ensure consistency of permissions among all objects within a given container.
By default, objects within a container inherit the permissions from that container when the objects are created. For example, when you create a folder called MyFolder, all subfolders and files created within MyFolder automatically inherit the permissions from that folder. Therefore, MyFolder has explicit permissions, while all subfolders and files within it have inherited permissions.

When you disable inherited permissions for a file or folder (object), you can choose to either Convert inherited permissions into explicit permissions on this object or Remove all inherited permissions from this object.

When you enable inherited permissions for a file or folder (object), all permissions from the object's parent (ex: drive or folder) will get added to the object. You will see Inherited from in the object's Advanced Security Settings to let you know the parent.

References:

You must be signed in as an administrator to enable or disable nherited permissions for files and folders.

If you are unable to enable or disable inherited permissions for a file or folder, then you will need to take ownership of the file or folder first, and try again afterwards. This can happen when you are not the owner, or you do not have read or write permissions.




Contents

  • Option One: Enable Inherited Permissions for File or Folder in Advanced Security Settings
  • Option Two: Disable Inherited Permissions for File or Folder in Advanced Security Settings
  • Option Three: Enable or Disable Inherited Permissions for File or Folder using icacls Command


EXAMPLE: Explicit and inherited permissions

Explicit_and_inherited_permissions.webp





Option One

Enable Inherited Permissions for File or Folder in Advanced Security Settings


1 Right click on the file or folder you want to enable inherited permissions for, and click/tap on Properties.

2 Click/tap on the Security tab, and click/tap on the Advanced button. (see screenshot below)

Enable_inheritable_permissions-1.webp

3 Click/tap on the Change permissions button if there. (see screenshot below)

Enable_inheritable_permissions-2.webp

4 Click/tap on the Enable inheritance button. (see screenshot below)

Enable_inheritable_permissions-3.webp

5 Click/tap on Apply to see the applied inherited permissions. (see screenshot below)

Enable_inheritable_permissions-4.webp

6 Click/tap on OK. (see screenshot below)

If this is for a folder, you can check Replace all child object permissions entries with inheritable permission entries from this object before clicking on OK to replace the permissions of all subfolders and files in this folder with the same inherited permissions from this folder.

This will also remove explicit permissions from the child objects.


Enable_inheritable_permissions-5.webp

7 Click/tap on OK. (see screenshot below)

Enable_inheritable_permissions-6.webp




Option Two

Disable Inherited Permissions for File or Folder in Advanced Security Settings


1 Right click on the file or folder you want to disable inherited permissions for, and click/tap on Properties.

2 Click/tap on the Security tab, and click/tap on the Advanced button. (see screenshot below)

Disable_inheritable_permissions-1.webp

3 Click/tap on the Change permissions button if there. (see screenshot below)

Disable_inheritable_permissions-2.webp

4 Click/tap on the Disable inheritance button. (see screenshot below)

Disable_inheritable_permissions-3.webp

5 Do step 6 (convert inherited permissions) or step 7 (remove inherited permissions) below for what you want.

6 Convert inherited permissions into explicit permissions on this object

A) Click/tap on Convert inherited permissions into explicit permissions on this object. (see screenshot below)​

Disable_inheritable_permissions-4.webp

B) Click/tap on OK, and go to step 8 below. (see screenshot below)​

If this is for a folder, you can check Replace all child object permissions entries with inheritable permission entries from this object before clicking on OK to replace the permissions of all subfolders and files in this folder with the same inherited permissions from this folder. This will also remove explicit permissions from the child objects.


Disable_inheritable_permissions-5.webp

7 Remove all inherited permissions from this object

This will not remove explicit permissions.


A) Remove all inherited permissions from this object. (see screenshot below)​

Disable_inheritable_permissions-4.webp

B) Click/tap on OK, and go to step 8 below. (see screenshot below)​

If this is for a folder, you can check Replace all child object permissions entries with inheritable permission entries from this object before clicking on OK to replace the permissions of all subfolders and files in this folder with the same inherited permissions from this folder. This will also remove explicit permissions from the child objects.


Disable_inheritable_permissions-6.webp

8 Click/tap on OK. (see screenshot below)

Disable_inheritable_permissions-7.webp




Option Three

Enable or Disable Inherited Permissions for File or Folder using icacls Command


1 Open Terminal (Admin), and select either Windows PowerShell or Command Prompt.

2 Type the command below you want to use into Terminal, and press Enter. (see screenshots below)

Enable inheritance
icacls "<full path of file or folder>" /inheritance:e

OR​

Disable inheritance and "Convert inherited permissions into explicit permissions on this object"
icacls "<full path of file or folder>" /inheritance:d

OR​

Disable inheritance and "Remove all inherited permissions from this object"
icacls "<full path of file or folder>" /inheritance:r

Substitute <full path of file or folder> in the commands above with the actual full path of the file with extension or folder you want.

For example:

icacls "D:\Folder" /inheritance:e

OR

icacls "D:\Folder\file.txt" /inheritance:e


Inheritance-e.webp

Inheritance-d.webp

Inheritance-r.webp



That's it,
Shawn Brink


 
Last edited:
Back
Top Bottom