We present three-dimensional solutions of the magnetohydrostatic equations in the co-rotating frame of reference outside a magnetized rigidly rotating cylinder. We make no symmetry assumption for the magnetic field, but to be able to make analytical progress we neglect outflows and specify a particular form for the current density. The magnetohydrostatic equations can then be reduced to a singl...