Chown root mistake

chownroot

I accidentally executed the chown userx:userx / command.

Is there a way to fix this in a gentle way?

I know the mysql folder has to be owned by mysql:mysql. But what about the other folders?
Are there permissions scripts available?

It's a VPS that runs in an Virtuozzo clustered environment with OS Redhat.

Best Answer

Did you tell it to recursively apply it?

You may find that it did not apply it recursively in which case only the top level will be userx:uxery so you don't actually have to change anything except root:root again.

If you DID NOT chown -R then it should still be fine.