podman unshare chown -R 0:0 <directory>
The above command would change the ownership back to the user under which podman is running