chmod pg script