comp426-2022-fall / a00

Install required software for COMP 426 and read an intro guide to Git and GitHub
0 stars 6 forks source link

Clarification needed: ./install_check.sh outputting Permission Denied #12

Closed areebakhokhar closed 2 years ago

areebakhokhar commented 2 years ago
Screen Shot 2022-08-22 at 4 28 44 PM

When I try to run the script: ./install_check.sh I keep getting permission denied. I'm not sure why.

Thanks!

jdmar3 commented 2 years ago

This is a runtime error

Run ls -lah in that directory and post the output.

The most likely problem is that that the mode needs to be set to execute this script.

If the output from ls -lah doesn't have any x's in the leftmost column, then you can run: chmod +x and then after that you'll be able to run ./install_check.sh and it will run.

areebakhokhar commented 2 years ago
Screen Shot 2022-08-22 at 5 15 10 PM

I don't see any x's, but when I run chmod +x it still says permission denied. also when i run ls -lah the output doesn't change from what it was originally.

jdmar3 commented 2 years ago

chmod +x ./install_check.sh

I should have specified that you have to run it on the file you are trying to give execute mode to. It should have output an error if you ran it without a target, something like this:

chmod: missing operand after ‘+x’
Try 'chmod --help' for more information.
areebakhokhar commented 2 years ago

this worked, thank you!