If you'd done "chmod-R" you would have been OK - it would have just been a "command not found" error.
*Never* set permissions to 777. It's always the wrong thing to do.
I can't get acces via console.....
If you boot single user, there is a small chance that you could repair things by doing:
rpm --setugids $(rpm -qa)
rpm --setperms $(rpm -qa)
signal-event post-upgrade ; signal-event reboot