It’s one of the most basic aphorisms of business: The customer is always right. But when companies, especially large ones, try to rectify a service failure and satisfy an aggrieved customer, they face a risk many managers don’t think about: becoming a target for opportunists.

A version of this article appeared in the April 2011 issue of Harvard Business Review.