On Centos 6.5 I accidentally typed
chmod -R 777 /
Ooops. I CTRL + C'ed out of it very quickly, but not before it'd started working away for a couple of seconds.
Consequences? Well, already
su root
isn't working (although logging in via SSH as root is). I'm not sure what else might have been affected.
Any ideas how I can proceed from here? Just re-install from backup or is there something clever I can do?
Many thanks.
Edit - what I'm really hoping for is some bash magic.
- find files set to 777 in last hour on the server
- set them to the permission value they should be for a standard Centos 6.5 install