ContainerFileSystemCallbackAnnotation.Umask Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The umask to apply to files or folders without an explicit mode permission. If set to null, a default umask value of 0022 (octal) will be used. The umask takes away permissions from the default permission set (rather than granting them).
public System.IO.UnixFileMode? Umask { get; set; }
member this.Umask : Nullable<System.IO.UnixFileMode> with get, set
Public Property Umask As Nullable(Of UnixFileMode)
Property Value
Remarks
The umask is a bitmask that determines the default permissions for newly created files and directories. The umask value is subtracted (bitwise masked) from the maximum possible default permissions to determine the final permissions. For directories, the umask is subtracted from 0777 (rwxrwxrwx) to get the final permissions and for files it is subtracted from 0666 (rw-rw-rw-). For a umask of 0022, this gives a default folder permission of 0755 (rwxr-xr-x) and a default file permission of 0644 (rw-r--r--).