cacls

ファイルのアクセス制御リスト (ACL) を表示または変更します。

コントロール ACL プログラム


cacls

  • C:\Windows\system32\cacls.exe /?

Output:


 注意: CACLS の使用は推奨されていません。ICACLS を使用してください。

 ファイルのアクセス制御リスト (ACL) を表示または変更します。

 CACLS ファイル名 [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C]
                   [/G ユーザー名:アクセス権] [/R ユーザー名 [...]]
                   [/P ユーザー名:アクセス権 [...]] [/D ユーザー名 [...]]
    ファイル名     ACL を表示します。
    /T             現在のディレクトリとすべてのサブディレクトリにある
                   指定されたファイルの ACL を変更します。
    /L             ターゲットではなくシンボリック リンク自体で動作します
    /M             ディレクトリにマウントされたボリュームの ACL を変更します
    /S             DACL の SDDL 文字列を表示します。
    /S:SDDL        ACL を SDDL 文字列で指定されたもので置き換えます
                   (/E、/G、/R、/P、または /D では無効)    /E             ACL を置き換えずに編集します。
    /C             アクセス拒否エラーを無視して、アクセスを続行します。
    /G ユーザー名:アクセス権
                   指定されたユーザーにアクセス権を与えます。
                   アクセス権: R  読み取り
                               W  書き込み
                               C  変更 (書き込み)
                               F  フル コントロール
    /R ユーザー名
                   指定されたユーザーのアクセス権を失効させます
                   (/E オプションと共に使用)    /P ユーザー名:アクセス権
                   指定されたユーザーのアクセス権を置き換えます。
                   アクセス権: N  なし
                               R  読み取り
                               W  書き込み
                               C  変更 (書き込み)
                               F  フル コントロール
    /D ユーザー名  指定されたユーザーのアクセスを拒否します。
 複数のファイルを指定するには、ワイルドカードを使用できます。
 複数のユーザーを指定できます。

 省略形:
    CI - コンテナー継承。
         ACE はディレクトリに継承されます。
    OI - オブジェクト継承。
         ACE はファイルに継承されます。
    IO - 継承のみ。
         ACE は現在のファイル/ディレクトリに適用されません。
    ID - 継承済み。
         ACE は親ディレクトリの ACL から継承されました。

 NOTE: Cacls is now deprecated, please use Icacls.

 Displays or modifies access control lists (ACLs) of files

 CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/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 all subdirectories.
    /L            Work on the Symbolic Link itself versus the target
    /M            Changes ACLs of volumes mounted to a directory
    /S            Displays the SDDL string for the DACL.
    /S:SDDL       Replaces the ACLs with those specified in the SDDL string
                  (not valid with /E, /G, /R, /P, or /D).
    /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 specified user's access rights (only valid with /E).
    /P user:perm  Replace specified user's access rights.
                  Perm can be: N  None
                               R  Read
                               W  Write
                               C  Change (write)
                               F  Full control
    /D user       Deny specified user access.
 Wildcards 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 directories.
    OI - Object Inherit.
         The ACE will be inherited by files.
    IO - Inherit Only.
         The ACE does not apply to the current file/directory.
    ID - Inherited.
         The ACE was inherited from the parent directory's ACL.

Return Code: 160


C:\Windows\system32\cacls.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size34304bytes
Creation Time2019/12/07 18:09:51
LastWrite Time2019/12/07 18:09:51
ProductVersion10.0.19041.1889
FileVersion10.0.19041.1889 (WinBuild.160101.0800)
HashValue
MD5a353590e06c976809f14906746109758
SHA13e38480e52434f1e193d9c84b8bdc133c4bd10c2
SHA224b37c7a476e7dca227925f87bbe5731f30c968b7e9ef3dbe1a56e78d3
SHA256d6e40b4ed7c0bc8ac18b15d265ed2edab9efc260332ef0a98623f943be3a43fa
SHA38475a1879bf22e076c12bc6edb4ebf40604b78ec6c8d347cd1de957b327187e61d9943bc18c2d9e36ca6d938d387da3a5c
SHA51254a884652032040acda5c3a78d258bbe50362f77f2a3a364a8819cf8263282fcb21e35d7293eb62202ea82e96b5994fd072356d310df3037bec6a61c221796a6
Built with Hugo
テーマ StackJimmy によって設計されています。