Permission denied in mac terminal

82,627

Solution 1

You have to make the file executable:

chmod +x ArduinoWifiShield_upgrade.sh

Solution 2

To avoid permission denied prompt, type this command and continue

sudo su

Install the packages in this admin mode,

then go back to normal mode

exit
Share:
82,627
sara
Author by

sara

Updated on November 10, 2021

Comments

  • sara
    sara over 2 years

    I'm trying to write a command on mac terminal using the root, but it shows me that the permission denied, when I use the sudo it shows that the command not found

    can any one please help me

    aftheers-MacBook-Air:scripts root# ./ArduinoWifiShield_upgrade.sh
    -sh: ./ArduinoWifiShield_upgrade.sh: Permission denied
    
    • Arc676
      Arc676 over 8 years
      Did you make the file executable using chmod +x ArduinoWifiShield_upgrade.sh?
  • bot19
    bot19 almost 2 years
    explanation would be good