check read & write permission before launching job