Performing CyberOps Using Cisco Security Technologies (CBRCOR) — Question 94

An engineer has created a bash script to automate a complicated process. During script execution, this error occurs: permission denied. Which command must be added to execute this script?

Answer options

Correct answer: A

Explanation

The correct command is 'chmod +x ex.sh', which grants execute permissions to the script. The other options do not address the permission issue; 'source ex.sh' runs the script in the current shell but requires execution permission, 'chroot ex.sh' is for changing the root directory, and 'sh ex.sh' simply tries to run the script without setting the necessary execute permission.