icacls is a command-line utility that can be used to modify NTFS file system permissions in Windows.
icacls is a command-line utility that can be used to modify NTFS file system permissions in Windows Server 2003 SP2, Windows Server 2008, Windows Vista and Windows 7. It builds on the functionality of similar previous utilities, including cacls, Xcacls.exe, Cacls.exe, and Xcacls.vbs.
Opposed to each group and the user’s access level is specified. Access rights are indicated using abbreviations. Consider the permissions for the user CORP\someusername. The following permissions are assigned to this user:
(OI) — object inherit
(CI) — container inherit
(M) — modify access
This means that this user has the rights to write and modify data in this directory. These rights are inherited to all child objects in this directory.
Below is a complete list of permissions that can be set using the icacls utility: