Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Have you tried using a bootable linux distro to set all the bin dir contents to executable? The main bin dirs are in the PATH variable which (on debian at least) is in /etc/profile
chmod -R o=r /
first.PATH
variable which (on debian at least) is in /etc/profile