Where a receiver is not appointed by the court or a judge thereof, the sheriff or other officer attaching the property, shall have all the powers and perform all the duties of a receiver appointed by the court or a judge, and may, if necessary, commence and maintain actions in his own name as such officer. He may be required to give security other than his official undertaking.
R.L. 1910, § 4849.