The court shall make orders in the case as will protect and enforce the rights of all interested therein.