replace the cmod with the proper C chmod