GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — Xcacls.exe - Display or modify Access Control Lists command - Windows CMD XCACLS.exe (NT 4 Resource Kit, Windows XP and 2003)Display or modify Access Control Lists (ACLs) for files and folders. For Vista and greater use icacls or SetObjectSecurity. Syntax
XCACLS filename [options]
XCACLS filename
FolderSpec is a permission applied to a folder.
If FolderSpec is not specified then permission will apply to both files and folders. If the file/folder is currently open (locked) it may not be possible to change the permissions without first closing the file locks. This can be done in Computer Management ➞ Shared Folders ➞ Open files. Although taking ownership is listed as an option it does not work, use SUBINACL for this. Inheritance Errors "Permissions incorrectly ordered" - the quickest way to resolve or avoid these errors is to use the newer iCACLS command instead of XCACLS. Inherited folder permissions are displayed as: OI - Object inherit - This folder and files. (no inheritance to subfolders)
CI - Container inherit - This folder and subfolders.
IO - Inherit only - The ACE does not apply to the current file/directory
These can be combined as follows:
(OI)(CI) This folder, subfolders, and files.
(OI)(CI)(IO) Subfolders and files only.
(CI)(IO) Subfolders only.
(OI) (IO) Files only.
So BUILTIN\Administrators:(OI)(CI)F means that both files and Subdirectories will inherit 'F' (Fullcontrol) When xcacls is applied to the current folder only there is no inheritance and so no output. By default, an object will inherit permissions from its parent object, either at the time of creation or when it is copied or moved. The only exception to this rule occurs when you move an object to a different folder on the same volume. In this case, the original permissions are retained. In controlled environments this ensures that users cannot change file permissions by just moving items to a different folder. This behaviour can be disabled by setting a system-wide registry key, see Q310316. NTFS permissions have changed with different versions of Windows and XCACLS has been updated to suit. ExamplesAllow guests the right to read and execute in "C:\demo\reports":
Allow guests the Full Control permission in "C:\demo\reports" and all subfolders:
Grant guests only read access to all files in and below "C:\demo\reports", new folders created will be Read Access only, new files will not inherit any rights:
Grant guests only execute access to all files in and below "C:\demo\reports":
“I spent most of the eighties, most of my life, riding around in somebody else’s car, in possession of, or ingested of, something illegal, on my way from something illegal to something illegal with many illegal things happening all around me” ~ Iggy Pop Related commandsATTRIB - Display or change file attributes. Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |