Because of a typo in the chmod command, the / usr / bin directory was blocked on Ubuntu 16.04.

Result of the ls -l :

d --------- 2 root root 69632 Oct 8 15:51 bin

When trying to use chmod error:

bash: / usr / lib / command-not-found: / usr / bin / python3: bad interpreter: Access denied

Is it possible to restore rights?

  • Is it possible to boot into single-user-mode and is there a password from root? - etki
  • 2
    Resolved by downloading from live cd and restoring permissions for a folder via sudo - nat_kot

1 answer 1

chmod is in / bin. /bin/chmod 755 /usr/bin enough to fix the problem.

  • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky
  • The claim is based on the obvious fact that the permissions change program is available because it is located in the / bin directory. the person needs to fix the problem in / usr / bin. - Rus