You were on the right track talking about a sheriff, because it’s
Sheriff John Stone
from the Beach Boys’ 1966 hit “Sloop John B,” originally a Bahamian folk song: Sloop John B - Wikipedia
The first mate, he got drunk And broke in the captain’s trunk The constable had to come and take him away Sheriff John Stone Why don’t you leave me alone?..
Earlier versions of the song don’t refer to him, from what I could find.
Never would have gotten that, because I’ve always understood it as “Sheriff Johnstone”. Just checked Gallienne’s book (cited in the Wiki article) on Project Gutenberg, and he spelt it that way, too.
All the online sources with the Beach Boys’ lyrics that I found list the guy as “Sheriff John Stone.” But there were earlier variants, hence my DQ answers.