After you apply the hotfix that is described in this article, you can use the Cacls.exe utility to add or to remove NTFS permissions to NTFS volumes that have a volume mount point as their only path. This hotfix adds a new command-line switch (
cacls /m) that provides Cacls.exe with the functionality to apply permissions to a mount point folder and to apply permissions to the underlying root of the mounted volume.
Description of updated Cacls.exe usage and command-line switches
CACLS FileName [/T] [/M] [/E] [/C] [/G user:perm] [/R user [...]]
[/P user:perm [...]] [/D user [...]]
FileName Displays ACLs.
/T Changes ACLs of specified files in
the current directory and in all subdirectories.
/M Changes ACLs of volumes mounted to a directory
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G user:perm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke access rights of a specified user
(only valid with /E).
/P user:perm Replace access rights of a specified user.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcard characters can be used to specify more than one file in
a command. You can specify more than one user in a command.
Abbreviations:
CI - Container Inherit.
The ACE will be inherited by folders.
OI - Object Inherit.
The ACE will be inherited by files.
IO - Inherit Only.
The ACE does not apply to the current file or folder.
With additional enhancements to the Cacls.exe utility, you can specify a volume GUID as the target instead of specifying the drive letter as the target. For example, instead of using the drive letter, type the following command at the command prompt:
C:\cacls \\?\Volume{26a21bda-a627-11d7-9931-806e6f6e6963}\
Note In this example,
{26a21bda-a627-11d7-9931-806e6f6e6963} is an example of a volume GUID.
Note To list the attached volumes (in the format Volume{GUID}) on your computer, you can use the Mountvol.exe utility. To use this utility, type
mountvol at a command prompt, and then press ENTER.
Additional Examples
To modify permissions to add
User_Name1 to the root of the volume and to all subfolders on the volume by using the volume GUID, type the following:
C:\cacls \\?\Volume{26a21bda-a627-11d7-9931-806e6f6e6963}\ /T /E /G User_Name1:F
To view permissions on the root of a mounted volume by using the volume GUID, type the following:
C:\cacls \\?\Volume{26a21bda-a627-11d7-9931-806e6f6e6963}\
To view permissions on the root of a mounted volume by using the mountpoint name, type the following:
C:\cacls F:\mounted_volume /M
To modify permissions on the root of a mounted volume so that
User_Name1 has permission to read, type the following:
C:\cacls F:\mounted_volume /M /E /P User_Name1:R
To modify permissions on the root of a mounted volume to change permissions for
User_Name2 to Full Control, type the following:
C:\cacls F:\mounted_volume /M /E /G User_Name2:F
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684
Description of the standard terminology that is used to describe Microsoft software updates