Windows

icacls

CautionView/edit NTFS ACLs

icacls <path>

Shows and edits ACLs: /grant adds rights, /t recurses, /reset restores inheritance.

Examples

  • icacls D:\share /grant "DOMAIN\Sales":(OI)(CI)M /tGrant modify recursively
  • icacls C:\app /reset /tReset to inherited ACLs

Syntax

icacls <path> [/grant user:perm] [/reset] [/t]

Before you run it

A wrong /t scope rewrites many ACLs.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store