Generally, both legal parents must agree to change the child’s name. In court, if the parties have a dispute, the courts will look at the best interest standard in determining whether the name change should be allowed or not.  There can even be a trial regarding this.