How to restore file permissions after wrong chown

All the files whether system files or drive are owned by root:wheel. What should I do?

Currently my Mac only opens in recovery mode.

I use mac OS Catalina

I stuck with recovery terminal what is the default ownership for all these files enter image description here

first I command this wrong command chown -R _www:_www / and destroyed my mac then i command on recovery terminal chown -R root / which made things worse i think

I reinstalled Mac now I am stuck here. The old password doesn't work. Does Mac have a default name and password or what


Solution 1:

The files and directories in / are always owned by root/wheel, there is nothing which seems wrong on your screenshot.