law: The Foreigners Act, 1946
  6. Obligations of
  
  masters of vessels, etc. -
  (1) The master of any vessel landing or
  
  embarking at a port in India passengers coming to or going from that port by
  
  sea and the pilot of any aircraft landing or embarking at any place in India
  
  passengers coming to or going from that place by air, shall furnish to such
  
  person and in such manner as may be prescribed a return giving the prescribed
  
  particulars with respect to any passengers or members of the crew, who are
  
  foreigners.
  (2) Any District Magistrate and any
  
  Commissioner of Police or, where there is no Commissioner of Police, any
  
  Superintendent of Police may, for any purpose connected with the enforcement of
  
  this Act or any order made thereunder , require the
  
  master of any such vessel or the pilot of any such aircraft to furnish such
  
  information as may be prescribed in respect of passengers or members of the
  
  crew on such vessel or aircraft, as the case may be.
  (3) Any passenger on such vessel or such
  
  aircraft and any member of the crew of such vessel or aircraft shall furnish to
  
  the master of the vessel or the pilot of the aircraft, as the case may be, any
  
  information required by him for the purpose of furnishing the return referred
  
  to in sub-section (1) or for furnishing the information required under
  
  sub-section (2).
  (4) If any foreign enters India and
  
  contravention of any provision of this Act or any order made  thereunder , the prescribed authority may, within two months
  
  from the date of such entry, direct the master of the vessel or the pilot of the
  
  aircraft on which such entry was effected or the owner or the agent of the
  
  owner of such vessel or aircraft, to provide, to the satisfaction of the said
  
  authority and otherwise than at the expense of Government, accommodation on a
  
  vessel or aircraft for the purpose of removing the said foreigner from India.
  (5) The master of any vessel or the pilot of
  
  any aircraft which is about to carry passengers from a port or place in India
  
  to any destination outside India, or the owner or the agent of the owner of any
  
  such vessel or aircraft shall, if so directed by the Central Government and on
  
  tender of payment therefore at the current, rates, provide on the vessel or
  
  aircraft accommodation to such port or place outside India, being a part or
  
  place at which the vessel or aircraft is due to call, as the Central Government
  
  may specify, for any foreigner ordered under Section 3 not to remain in India
  
  and for his dependents, if any, traveling with him.
  [(6) For the purposes of this section -
  (a)  master of
  
  a vessel and pilot of any aircraft shall include any person
  
  authorized by such master or pilot as the case may be, to discharge on his
  
  behalf any of the duties imposed on him by this section;
  (b)  passenger 
  
  means any person not being a bona fide member of the crew, traveling or
  
  seeking to travel on a vessel or aircraft.