Today I wroye a php script to generate a shell script that does chmod users folders and files following the suphp rule recursively. Unfortunately there is a virtfs and my shell script has done chmod 755 on every folder and and 644 on files inside virtfs. As you may know virtfs has hard links to filesystem. So I have chmod-ed whole my file system. Now I have a open ssh session but no command is accepted even with sudo and it says "Permission Denied" even for clear and chmod itself. Also I can no longer login upon another session, it does not accept the password.
I have sucked my file system in a way that there is no execution permission on the OS. Do I need a server reinstallation?