Good Day for a Hanging (1959)
It's been more than twenty years since Ben Cutler (Fred MacMurray) wore a badge, but when the town's bank gets robbed, he joins the posse. After the chase, where he saw Marshal Cain (Emile Meyer) get killed, he can't say "no" when the town asks him to take over the Marshal's duties. However, that same town starts to turn against him when he takes his new duties seriously by arresting and testifying against the killer... a boy, Eddie 'The Kid' Campbell (Robert Vaughn), who grew up in this town and comes from a broken home, garnering the sympathy of the townsfolk, who'd rather believe one of the other escaped bank robbers shot the sheriff. This is compounded by his daughter, who still has a crush on Eddie, even though after his mother died two years ago, he left town with not a word to her since. She, too, is convinced that Eddie is still that good little boy everyone remembers, and can't believe he's been changed, by his new life of riding with outlaws.