Sounds like our skipper on Sealion (name withheld out of respect), who was leading the lads in a sods opera in the casino. A mess-dressed Chief off the Brighton took exception to the performance, and not realising whom he was addressing (all in civvies) proceeded to rip the skipper off a strip, announcing that he was Chief Petty Officer so-and-so off HMS Brighton, and if he didn't get down from the table and behave, the shore patrol would be called, and he'd be arrested. A hushed silence descended over the crew, as the skipper poked this little Chief in the chest, pushing him right across the casino, informing him at the same time that if he didn't piss off, his "lads" would sort him out big time!
Fortunately, no shore patrol involvement occured, and the Boss got away with it, and his already high status among the crew soared to new heights.
I doubt that they make submarine officers in the same mould now, and who knows - that may be a good thing?