Permission Denied Error in Linux Terminal

26,472

You should be using sudo to run that.

Run this command inside the directory which contains the file you want to run.

sudo ./INSTALL.sh

If sudo ins't enabled, you can run su -c ./INSTALL.sh

Share:
26,472

Related videos on Youtube

slhck
Author by

slhck

Updated on September 18, 2022

Comments

  • slhck
    slhck over 1 year

    I am getting a Permission denied error while executing the sh INSTALL.sh command in my Linux terminal.

    Can any one suggest me how to solve this problem? I getting this error while am installing 94 POS Software.

    The piece of code is

    INSTALL.sh: line 75: toolchain/INSTALL: Permission denied
    INSTALL.sh: line 76: download/INSTALL.sh: Permission denied
    INSTALL.sh: line 85: export: /usr/local/arm-
    linux/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/manohar/bin': not a valid identifier

    • Admin
      Admin almost 13 years
      This isn't a programming question, please read the faq: stackoverflow.com/faq
    • Admin
      Admin almost 13 years
      This will probably do you more harm than good, but try sudo ./INSTALL.sh.
    • mhitza
      mhitza almost 13 years
      By default sudo isn't enabled, try su -c 'INSTALL.sh'. It will ask your password.
  • slhck
    slhck almost 13 years
    Also, this needs INSTALL.sh to have execute permissions. If it doesn't work, you'd need to run sudo chmod +x INSTALL.sh.