Adjust file permissions so contents are not erased (same as how hayrack does this)