chmod inline with echo and chmod back