law: Code of Criminal Procedure Act, 1973
  
  20.Executive Magistrates.-
  (1) In every district and in every
  
  metropolitan area, the State Government may appoint as many persons as it
  
  thinks fit to be Executive Magistrates and shall appoint one of them to be the
  
  District Magistrate.
  (2) The State Government may appoint any Executive Magistrate to be an
  
  Additional district Magistrate, and such Magistrate shall have all or any of
  
  the powers of a District Magistrate under this Code or under any other law for
  
  the time being in force.
  (3) Whenever, in consequence of the office of a District Magistrate becoming
  
  vacant, any officer succeeds temporarily to the executive administration of the
  
  district, such officer shall, pending the orders of the State Government,
  
  exercise all the powers and perform all the duties respectively conferred and
  
  imposed by this Code on the District Magistrate.
  (4) The State Government may place an Executive Magistrate in charge of a
  
  sub-division and may relieve him of the charge as occasion requires; and the
  
  Magistrate so placed in charge of a sub-division shall be called the
  
  Sub-divisional Magistrate.
  (5) Nothing in this section shall preclude the State Government from
  
  conferring, under any law for the time being in force, on a Commissioner of
  
  Police, all or any of the powers of an Executive Magistrate in relation to a
  
  metropolitan area.