Take your dog to the vet. He could, and probably does, have worms, and a possible impaction. His butt should not be raw and he should NOT be rubbing it on the ground after he poops. The shelter person is incorrect.