Who is the owner of waste water in case of lack of sanitation/sewage infrastructure?

Beyond the fact that the water polluter should pay or repair the dammages, who is the owner of waste water in case of lack of sanitation/sewage infrastructure? Thanks