A man dressed in a light shirt and coveralls attempting to work on a train locomotive.
The man is riding a train.
Riding refers to a passive passenger, while working is active. You wouldn't usually refer to a train worker while he is working as "riding" the train.
(-x)
(-x)