Bash Scripting Basics execution error

I followed this instuctions at the guided exercise on Bash scripting basics on the carreer path: IT and Cybersecurity basics.
no. 17 under part 3 reusable scrips, getting access denied error. It dosent mention that a error should be encountered.
I check the document I have to create and it’s correct, to run the script in terminal.
I cant progress without it.
I require assistence!

Welcome to Forums!

Please post a screen shot showing the command you are attempting and the error message.

Can I get assistence?
please.

image

Did you make the script executable?

I am not sure?
I created the script2.sh as instructed, can you tell how I should have made it executable?

You did it for script1.sh earlier in the lab :slight_smile:

chmod +x script2.sh

Ok Il’l try it again, and check back to let you know.

Hi
The solution work thank for making it clear.

For part 1 step 15 I’m not getting the output it shows on the instructions I’m just getting like to execute new code

Can you show a screen shot of the command and the output. Most likely this is a syntax error.

Yes ima redo it and try right now I’ll take a picture

Never mind I got it thank you I figured it out

For part 3 step 16 it keep saying permission denied when I try to run script 2

What does the output of the following show?

ls -la script2.sh


The output gives me this

You forgot to make script2.sh executable.

How do I do that then?

Just like you did to script1.sh in Step 5 :slight_smile: