欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

批處理設(shè)置文件訪問權(quán)限的方法分享

 更新時(shí)間:2011年09月02日 00:01:36   作者:  
批處理設(shè)置文件訪問權(quán)限,實(shí)際上就是通過SetACL.exe來實(shí)現(xiàn),大家可以看下使用方法。
SetACL.exe 0.904 中文幫助: SetACL.exe腳本之家下載地址
示例:
SetACL.exe c:\nihao /dir /deny everyone /read_ex
設(shè)置E:\wxDesktop 文件夾 everyone 用戶為讀取和運(yùn)行權(quán)限
SetACL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /registry /deny
administrator /read
設(shè)置注冊(cè)表鍵值Run 為完全控制權(quán)限
------------------------------------------------------------------------------
SetACL.exe 0.904 中文幫助:
用法:SetACL.exe
[/i:] [/p:] [/r:]
[/sid] [/silent]
注意:<> 中的參數(shù)是必需的,[] 中的參數(shù)是可選
==============================================================================
= 任意本地或遠(yuǎn)程對(duì)象的有效路徑
------------------------------------------------------------------------------
= 對(duì)象類型,以下任意參數(shù):
/file 文件
/dir 目錄
/printer 打印機(jī)
/registry 注冊(cè)表
/service 服務(wù)
/share 共享
------------------------------------------------------------------------------
= 操作,以下任意參數(shù)
/deny 拒絕指定用戶的訪問
/grant 賦予指定用戶的訪問權(quán)限
/set 設(shè)置指定用戶的訪問權(quán)限
/revoke 撤銷指定用戶的訪問權(quán)限
------------------------------------------------------------------------------
= 用戶
------------------------------------------------------------------------------
= 權(quán)限,以下任意參數(shù)
/file = 文件對(duì)象的可用參數(shù):
/read 讀取
/write 寫入
/read_ex 讀取和運(yùn)行
/change 修改
/full 完全控制
以下為特別的權(quán)限:
/traverse
/list_dir 讀取數(shù)據(jù)
/read_attributes 讀取屬性
/read_ea 讀取擴(kuò)展屬性
/add_file 寫入數(shù)據(jù)
/add_subdir
/write_attributes 寫入屬性
/write_ea 寫入擴(kuò)展屬性
/delete_child
/delete 刪除
/read_dacl 記取權(quán)限
/write_dacl 寫入權(quán)限
/write_owner 取得所有權(quán)
------------------------------------------------------------------------------
/dir = 目錄對(duì)象的可用參數(shù):
/read 讀取
/write 寫入
/list_folder 列出文件夾目錄
/read_ex 讀取和運(yùn)行
/change 修改
/full 完全控制
以下為特別的權(quán)限:
/traverse
/list_dir 讀取數(shù)據(jù)
/read_attributes 讀取屬性
/read_ea 讀取擴(kuò)展屬性
/add_file 寫入數(shù)據(jù)
/add_subdir
/write_attributes 寫入屬性
/write_ea 寫入擴(kuò)展屬性
/delete_child
/delete 刪除
/read_dacl 記取權(quán)限
/write_dacl 寫入權(quán)限
/write_owner 取得所有權(quán)
------------------------------------------------------------------------------
/printer = 打印機(jī)對(duì)象的可用參數(shù):
/print 打印
/man_printer 管理打印機(jī)
/man_docs 管理文檔
/full 完全控制
------------------------------------------------------------------------------
/registry = 注冊(cè)表對(duì)象的可用參數(shù):
/read 讀取
/full 完全控制
以下為特別的權(quán)限
/query_val 查詢數(shù)值
/set_val 設(shè)置數(shù)值
/create_subkey 創(chuàng)建子項(xiàng)
/enum_subkeys 枚舉子項(xiàng)
/notify 通知
/create_link 創(chuàng)建鏈接
/delete 刪除
/write_dacl 寫入 DAC
/write_owner 寫入所有者
/read_access 讀取控制
------------------------------------------------------------------------------
/service = 服務(wù)對(duì)象的可用參數(shù)
{/read | /start_stop | /full}
------------------------------------------------------------------------------
/share = 共享對(duì)象的可用參數(shù)
/read 讀取
/change 更改
/full 完全控制

相關(guān)文章

最新評(píng)論