Condividi tramite


PreserveSMBPermissions Enum

Definition

Enum to indicate what permission would be perserved DataMovement Library.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum PreserveSMBPermissions
[<System.Flags>]
type PreserveSMBPermissions = 
Public Enum PreserveSMBPermissions
Inheritance
PreserveSMBPermissions
Attributes

Fields

Name Value Description
None 0

Indicate to not preserve any permission

Owner 1

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.

Group 2

To preserve Group permission.

DACL 4

To preserve DACL permission.

SACL 8

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.

Applies to