Do you have to file for custody of your child in order to get a court document stating you have sole custody?

How much rights does a biological father have if the step father wants to adopt?