Not exactly the same but similar to Nightflyers (1987). A young man is basically imprisoned on a passenger spaceship and controls the ship along with an evil computer.
I immediately thought of "Nightflyers" as well. It has been years since I watched it, but I remember the movie having a horror/thriller feel.