Location of acl
When using the grant (/g) option, Cacls does not provide a way to answer Y or N within the parameters. Let’s take a look at some of these situations. You can use any number of variables.Ĭacls is a powerful tool for administering your ACLs, but you should be aware of a few quirks. Of course, the %1 variable is not the only variable I could specify for use with this bat file. This is handy for searches on large operations. The bat file ( test-variable-pass.bat) will look like this:įor a fancier situation, I could put a > c:\dump.txt at the end of the command prompt entry to pipe the results to a text file for review later. Revoke an ACL for a different user to the same folder.Grant a Change/Write ACL for the primary user of the folder and a Read ACL for another user.Display the ACLs for a folder and its subfolders.To highlight this feature, let's run through an example that will perform the following: This can make Cacls an integral part of a large user administration process. One of Cacls' administrative benefits is that you can pass it %1 variables when used in batch files. Table A shows the operations Cacls can perform, along with the corresponding option flags.Īs you can see, the three inherited objects that are displayed are: Cacls' rich feature set gives you some powerful configuration options. The simplest operation that Cacls can perform is to display the ACLs of a file or folder with a command such as:Ĭacls also allows for the use of wildcards, variables, and multiple permissions or users per line.
This will show a list of options and parameters. To see the Cacls options, start a command prompt, and type cacls.
#Location of acl windows#
The default location of Cacls.exe is in the %SystemRoot%\System32 folder for all installations of Windows NT, 2000, and XP and requires the NTFS file system.Ĭacls usage is similar across all Windows versions, which eases the learning curve across new releases of Windows. The usage of Cacls is from the command line for single tasks or within a batch file for multiple operations. It contains explanations of parameters, related resource links, and usage scenarios. Used with other administration tools, Cacls will make it much easier to handle administrative tasks performed in large environments.Īs a companion to this article, I created a Cacls reference guide you can download. You can also use Cacls in conjunction with other command-line tools. I first used Cacls in a batch file as part of a new user creation process and found it quite useful. Cacls is an interactive tool, and since it's a command-line utility, you can also use it in batch files. Cacls.exe is a Windows NT/2000/XP command-line tool you can use to assign, display, or modify ACLs (access control lists) to files or folders.