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
<FlagsAttribute>
Public Enumeration PreserveSMBPermissions
[FlagsAttribute]
public enum class PreserveSMBPermissions
[<FlagsAttribute>]
type PreserveSMBPermissions
Members
| Member 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.
|
See Also