How to attach a potentiometer to a servo motor shaft

wvmarle:
Why does it matter to a servo whether the command is relayed over a remote control system?

Unfortunately OP hasn't provided info on the actual servo in use, nor on the actual application, and only little information on why he would want to do this.

Automating the control valve of a hydraulic driven lawn mower.

Have not picked out a serval yet, trying to find out what I need to look for in a servo. Which I believe is going to be a Servo where the motor is powered on a different wire then the power for the internal potentiometer. That way when power is lost in the motor the potentiometer still works