2009年7月22日 星期三

Security權限設定Modify ACL Permission with cacls command(cacls與xcacls命令的使用)

Example:
C:\cacls c:\temp /E /G "Domain Users":R Users:R /R Everyone

/e Edit ACL instead of replacing it.
/g user|group:perm Grant specified user or group access permissions.
perm can be:
r Read
c Change (write)
f Full control
/r user Revoke specified user's or group's access permissions.
/p user|group:perm Replace specified user's or group's access permissions.
perm can be:
n None
r Read
c Change (write)
f Full control

[Reference]
Undocumented CACLS: Group Permissions Capabilities
http://support.microsoft.com/kb/162786/en-us


How to Use CACLS.EXE in a Batch File
http://support.microsoft.com/kb/135268

Microsoft Technet - Command-line reference - Cacls
http://technet.microsoft.com/en-us/library/bb490872.aspx

How to use Xcacls.exe to modify NTFS permissions
http://support.microsoft.com/kb/318754

沒有留言:

SQL Server Database Mirroring 資料庫鏡像

SQL Server Database Mirroring 資料庫鏡像