Catalyzes the O-acetylation of peptidoglycan (PG), an important mechanism that appears to confer lysozyme resistance and contributes to pathogen persistence in the host. Cells lacking this gene contain a greatly reduced amount of acetylated muropeptides in the bacterial PG, and are more susceptible to lysozyme killing than wild-type. Belongs to the membrane-bound acyltransferase family.