law: 7. Commanding officer of persons subject to military law under clause (i) of section 2.-
  (1) Every person subject to this Act under 1[clause (i) of sub-section (1) of section 2] shall, for the purposes of this Act, be deemed to be under the commanding officer of the corps, department of detachment, if any, to which he is attached, and, if he is not so attached, under the command of any officer who may for the time being be named as his commanding officer by the officer commanding the force with which such person for the time being is serving, or any other prescribed officer, or, if no such officer is named or prescribed, under the command of the said officer commanding the force.
  (2) An officer commanding a force shall not place a person subject to this Act under 1[clause (i) of sub-section (1) of section 2] under the command of an officer of rank inferior to that of such person, if there is present at the place where such person is any officer of a higher rank under whose command he can be placed.