Thank you, Henrique, I understand it now. As a side note, this is very unexpected for a unix user who got accustomed to POSIX semantics. On Wed, Sep 18, 2024 at 7:53 PM Henrique Carvalho <henrique.carvalho@xxxxxxxx> wrote: > > Hi, > > On Mon, Sep 16, 2024 at 03:43:22PM GMT, Maxim Patlasov wrote: > > Hi, > > > > Is this a bug or well-known issue? > > I think this is the expected behavior. > > When I try to reproduce this I get a STATUS_CANNOT_DELETE from the > server. > > This is from a MS-SMB2 Normative Reference: > > If File.FileAttributes.FILE_ATTRIBUTE_READONLY is TRUE, the > operation MUST be failed with STATUS_CANNOT_DELETE. > > ref.: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fsa/386d9ec5-e0f6-4853-b175-c05be01419e0 > > -- > Henrique >