I read this in the 90s. Probably older, probably a short story.
The main character was the captain and sole crew-member of a starship delivering a cargo of colonists in suspended animation to a remote planet. On the way he decided to amuse himself by (illegally) waking one of the passengers.
He had a perverted desire to dominate women, and chose a young woman with a low IQ in the hope of being able to terrify and manipulate her while he watched on camera. Fortunately she had been forewarned of this kind of trick and stood her ground, demanding he show himself.
She warned him that the authorities might punish him by removing his brain and forcing it to spend years operating industrial machinery. Realising he couldn't control his victim, he allowed her to return to suspended animation. It was then revealed that the protagonist was already serving such a sentence, spending this lonely voyage wired into a ship while his body was stored on the cold side of Mercury.