Click or drag to resize

PreserveSMBPermissions Enumeration

Enum to indicate what permission would be perserved DataMovement Library.

Namespace:  Microsoft.Azure.Storage.DataMovement
Assembly:  Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax
[FlagsAttribute]
public enum PreserveSMBPermissions
Members
  Member nameValueDescription
None0 Indicate to not preserve any permission
Owner1 To preserve Owner permission. In some cases, it requires to enable SeRestorePrivilege to set owner info to local file. See https://docs.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-setnamedsecurityinfow for details. To set owner permission to local file during downloading, the process needs to run with an account who has been assigned the privilege, for example run the process with administrator account.
Group2 To preserve Group permission.
DACL4 To preserve DACL permission.
SACL8 To preserve SACL permission. It requires to enable SeSecurityPrivilege to get or set SACL from or to local file. See https://docs.microsoft.com/en-us/windows/win32/api/aclapi/nf-aclapi-setnamedsecurityinfow for details. To get or set owner permission from or to local file, the process needs to run with an account who has been assigned the privilege, for example run the process with administrator account.
See Also