国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > BAT > 正文

批處理設置文件訪問權限的方法分享

2020-07-26 20:21:22
字體:
來源:轉載
供稿:網(wǎng)友
SetACL.exe 0.904 中文幫助: SetACL.exe武林網(wǎng)下載地址
示例:
SetACL.exe c:/nihao /dir /deny everyone /read_ex
設置E:/wxDesktop 文件夾 everyone 用戶為讀取和運行權限
SetACL MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/Run /registry /deny
administrator /read
設置注冊表鍵值Run 為完全控制權限
------------------------------------------------------------------------------
SetACL.exe 0.904 中文幫助:
用法:SetACL.exe
[/i:] [/p:] [/r:]
[/sid] [/silent]
注意:<> 中的參數(shù)是必需的,[] 中的參數(shù)是可選
==============================================================================
= 任意本地或遠程對象的有效路徑
------------------------------------------------------------------------------
= 對象類型,以下任意參數(shù):
/file 文件
/dir 目錄
/printer 打印機
/registry 注冊表
/service 服務
/share 共享
------------------------------------------------------------------------------
= 操作,以下任意參數(shù)
/deny 拒絕指定用戶的訪問
/grant 賦予指定用戶的訪問權限
/set 設置指定用戶的訪問權限
/revoke 撤銷指定用戶的訪問權限
------------------------------------------------------------------------------
= 用戶
------------------------------------------------------------------------------
= 權限,以下任意參數(shù)
/file = 文件對象的可用參數(shù):
/read 讀取
/write 寫入
/read_ex 讀取和運行
/change 修改
/full 完全控制
以下為特別的權限:
/traverse
/list_dir 讀取數(shù)據(jù)
/read_attributes 讀取屬性
/read_ea 讀取擴展屬性
/add_file 寫入數(shù)據(jù)
/add_subdir
/write_attributes 寫入屬性
/write_ea 寫入擴展屬性
/delete_child
/delete 刪除
/read_dacl 記取權限
/write_dacl 寫入權限
/write_owner 取得所有權
------------------------------------------------------------------------------
/dir = 目錄對象的可用參數(shù):
/read 讀取
/write 寫入
/list_folder 列出文件夾目錄
/read_ex 讀取和運行
/change 修改
/full 完全控制
以下為特別的權限:
/traverse
/list_dir 讀取數(shù)據(jù)
/read_attributes 讀取屬性
/read_ea 讀取擴展屬性
/add_file 寫入數(shù)據(jù)
/add_subdir
/write_attributes 寫入屬性
/write_ea 寫入擴展屬性
/delete_child
/delete 刪除
/read_dacl 記取權限
/write_dacl 寫入權限
/write_owner 取得所有權
------------------------------------------------------------------------------
/printer = 打印機對象的可用參數(shù):
/print 打印
/man_printer 管理打印機
/man_docs 管理文檔
/full 完全控制
------------------------------------------------------------------------------
/registry = 注冊表對象的可用參數(shù):
/read 讀取
/full 完全控制
以下為特別的權限
/query_val 查詢數(shù)值
/set_val 設置數(shù)值
/create_subkey 創(chuàng)建子項
/enum_subkeys 枚舉子項
/notify 通知
/create_link 創(chuàng)建鏈接
/delete 刪除
/write_dacl 寫入 DAC
/write_owner 寫入所有者
/read_access 讀取控制
------------------------------------------------------------------------------
/service = 服務對象的可用參數(shù)
{/read | /start_stop | /full}
------------------------------------------------------------------------------
/share = 共享對象的可用參數(shù)
/read 讀取
/change 更改
/full 完全控制
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 莆田市| 临桂县| 宁德市| 南皮县| 五峰| 崇信县| 九台市| 札达县| 陕西省| 城固县| 绍兴县| 北川| 彭泽县| 古交市| 延吉市| 岚皋县| 三台县| 隆回县| 潼南县| 三原县| 靖边县| 楚雄市| 岐山县| 宁强县| 通海县| 青田县| 屏东市| 双江| 博湖县| 南澳县| 大城县| 楚雄市| 黔东| 兴隆县| 靖安县| 潼关县| 合川市| 荔浦县| 新建县| 中卫市| 旬阳县|