SMB2 Access Mask Encoding

The SMB2 Access Mask Encoding in SMB2 is a 4-byte bit field value that contains an array of flags. An access mask can specify access for one of two basic groups: either for a file, pipe, or printer (specified in section or for a directory (specified in section Each access mask MUST be a combination of zero or more of the bit positions that are shown below.