Magento root@localhost permission denied

If you found error while firing magento 2 commands then it may be problem due to you don’t have execute permission for binaries.

To fix it please do following

  1. cd to your magento root directory
  2. Fire command  chmod u+x bin/magento
  3. if above command not working then fire with admin account sudo chmod u+x bin/magento
  4. Now check commands it should start working.