How to Set file access permissions for Batch Processing

Source: Internet
Author: User

SetACL.exe 0.904 help: SetACL.exe script home
Example:
SetACL.exe c: \ nihao/dir/deny everyone/read_ex
Set the read and run permissions for the E: \ wxDesktop folder everyone user.
SetACL MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run/registry/deny
Administrator/read
Set registry key value Run to full control permission
------------------------------------------------------------------------------
SetACL.exe 0.904 Chinese help:
Usage: SetACL.exe
[/I:] [/p:] [/r:]
[/Sid] [/silent]
Note: parameters in <> are required. Parameters in [] are optional.
========================================================== ==============================================
= Valid path of any local or remote object
------------------------------------------------------------------------------
= Object type, any of the following parameters:
/File
/Dir directory
/Printer
/Registry
/Service
/Share sharing
------------------------------------------------------------------------------
= Operation, any of the following parameters
/Deny Access From the specified user
/Grant the access permission to the specified user
/Set the access permission of the specified user
/Revoke: revoke the access permission of a specified user
------------------------------------------------------------------------------
= User
------------------------------------------------------------------------------
= Permission, any of the following parameters
/File = available parameters of the file object:
/Read
/Write
/Read_ex read and run
/Change modification
/Full control
The following are special permissions:
/Traverse
/List_dir read data
/Read_attributes read attribute
/Read_ea read extended attributes
/Add_file write data
/Add_subdir
/Write_attributes write attribute
/Write_ea write extended attributes
/Delete_child
/Delete
/Read_dacl
/Write_dacl write permission
/Write_owner get ownership
------------------------------------------------------------------------------
/Dir = available parameters of the directory object:
/Read
/Write
/List_folder: List folder Directories
/Read_ex read and run
/Change modification
/Full control
The following are special permissions:
/Traverse
/List_dir read data
/Read_attributes read attribute
/Read_ea read extended attributes
/Add_file write data
/Add_subdir
/Write_attributes write attribute
/Write_ea write extended attributes
/Delete_child
/Delete
/Read_dacl
/Write_dacl write permission
/Write_owner get ownership
------------------------------------------------------------------------------
/Printer = available parameters of the printer object:
/Print
/Man_printer manage printers
/Man_docs Management Document
/Full control
------------------------------------------------------------------------------
/Registry = available parameters of the registry object:
/Read
/Full control
The following are special permissions:
/Query_val
/Set_val
/Create_subkey create subitem
/Enum_subkeys enumeration subitem
/Notify notification
/Create_link
/Delete
/Write_dacl write to DAC
/Write_owner write owner
/Read_access read Control
------------------------------------------------------------------------------
/Service = available parameters of the service object
{/Read |/start_stop |/full}
------------------------------------------------------------------------------
/Share = available parameters of the shared object
/Read
/Change changes
/Full control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.