unable to run bash file

April 18, 2017 2k views
Ubuntu Linux Commands

i created droplet of ubuntu 12.04 64bit and trying to install Network simulator. but when i run command

 i got following error:
-bash: ./install: permission denied
any help will be appreciated!
thank you
2 Answers

Have you tried running it under sudo? So:

sudo ./install

If you are installing likely needs different permissions, if not I’d say confirm the requirements of your Network Simulator.


There’s a few ways to execute the file. First, you can give it execution rights using:

chmod +x install.sh

and then run ./install or you can use:

bash ./install
Have another answer? Share your knowledge.