Abstract: The invention relates to a device with a magnetic position sensor comprising a field sensor (5) and analysis electronics (7) for linear displacements of a rod-shaped component (3), in particular the shaft of an actuator, with an element (M) generating a magnetic field (4) and a position sensor measuring the magnetic field strength angle of this field, the field angle signal determined by this sensor being used for displacement path determination. The element generating a magnetic field (4) is an axially magnetized magnet casing (M) which surrounds the rod-shaped component (3) of the actuator itself, is fixedly connected thereto and can rotate therewith about its displacement axis (z).