A colleague of mine told me that after he executed the below command, he's not able to login to the system.
No user can login via ssh.
Only normal users can login over physical console of the system, but no administrative commands are allowed, not even
# sudo su -
And the culprit command which did the damage was
# chmod -R 777 /
My question, of course is, how to deal with such a system? Is there a way to restore the default permissions on a Linux system and what's best way to handle such situations?