My mistake, this was a problem of ACLs. I have the right to read the attribute, not to write it. Still, there is a problem with the error code and error message : this should be insufficent access rights and not naming violation.