I made a total mistake here. Anyway I ran chmod -R 777 /* and immediately regretted my decision.
I had to boot into single user mode to and ran chmod -R 755 /etc/* in order to login to the server.
The only problem is ssh now and obvious security issues.
How do I get SSH working again?
Connection closed by remote host– Lylo Aug 19 '15 at 08:16chmod -R 700 /home/*/.sshand see if that lets an ssh client in. but a re-install or careful full backup restore is still needed. – Skaperen Aug 19 '15 at 10:13