Quote :"You need to change your attitude this is no way to speak to your CPT"
It doesn't sound like this exchange was without some provocation or ill chosen words on the part of the PU.
If that was the case then the Captain has every right to put the PU in their place.
As other posters have alluded to, a little bit of respect goes a long way. It sounds like this PU may have over stepped the mark and got the "tug on the chain" that they deserved.