10 U.S.C. § 8166
Precedence accorded commanding officers
The commanding officer of a vessel or of a naval station takes precedence over all officers under his command.
( Aug. 10, 1956, ch. 1041 , 70A Stat. 372 , § 5946; renumbered § 8166, Pub. L. 115–232, div. A, title VIII, § 807(b)(5) , Aug. 13, 2018 , 132 Stat. 1834 .)