3.3.5.12 Receiving an SMB_COM_SET_INFORMATION Request

When the server receives an SMB_COM_SET_INFORMATION Request (section 2.2.4.10.1), it MUST verify that the file indicated by the FileName field in the request exists.  If the file does not exist, the server MUST fail the request with STATUS_OBJECT_NAME_NOT_FOUND (ERRDOS/ERRbadfile).   If the file exists and the user indicated by the UID field in the request header does not have permission to modify file metadata, the server MUST fail the request with STATUS_ACCESS_DENIED (ERRDOS/ERRnoaccess) and MUST increase Server.Statistics.sts0_permerrors by 1.

Otherwise, the server MUST attempt to set the file attributes provided in the request:

The response MUST be sent to the client as specified in section 3.3.4.1.