close

開啟資料夾 User 權限

除了手動去點選資料夾的右鍵 / 內容(屬性) / 安全性tag 

把 User 的 [寫入] 權限打勾

 

還有透過命令的方式去做 

使用 『 Cacls 』指令

CACLS NT 命令列公用程式,用來顯示或修改檔案或目錄的存取控制清單 (ACL)

CACLS 將新增、 修改,或刪除 NTFS ACL 中的群組的權限,以及使用者的權限

 

Syntax

cacls FileName [/t] [/e] [/c] [/g User:permission] [/r User [...]] [/p User:permission [...]] [/d User [...]]

FileName Required. Displays DACLs of specified files.

/t Changes DACLs of specified files in the current directory and all subdirectories.

/e Edits a DACL instead of replacing it.

/c Continues to change DACLs, ignoring errors.

/g User:permission Grants access rights to the specified user. The following table lists valid values for permission.


Value Description
------------------------------------
n None

r Read

w Write

c Change (Write)

f Full Control

 

※ 參考:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cacls.mspx?mfr=true

 

範例

請依照下列若要變更的所有檔案和以允許完全控制系統管理員本機群組 C 磁碟機上的目錄 ACL 步驟執行:

  1. 開啟命令提示字元。
  2. 類型: 

    cacls c: \ /t /e /g f 管理員:

請依照下列步驟變更 C: \ Temp 目錄 (但不是其子目錄),新增網域使用者的通用群組和使用者本機群組在讀取權限,並移除任何明確的權限的 「 每個人中的所有檔案的 ACL 群組:

  1. 開啟命令提示字元。
  2. 類型: 

    cacls c:\temp\*.* /e /g 「 網域使用者 」: r 使用者: r /r Everyone

 

 

測試結果… 還是不行呀!!!!

cacls 和 attrib 都試了,還是沒辦法只針對 user 的權限做更正…

arrow
arrow
    全站熱搜

    ⒶⓂⓎ 發表在 痞客邦 留言(0) 人氣()