Naval warrant officer (6-2-4)
I believe the answer is:
master-at-arms
(Other definitions for master-at-arms that I've seen before include "Naval chief petty officer" , "Chief Petty Officer in charge of discipline" , "Senior naval petty officer responsible for discipline" , "Ship's chief police officer" , "enforcer of naval discipline" .)