Prevented opening and deletion of read only files