Question

unable to run bash file

Posted April 18, 2017 2.4k views
UbuntuLinux 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

@errahulwadhwa

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
Submit an Answer