adplus-dvertising
frame-decoration

Question

Which one of the following commands will allow the file owner to execute a Bash script?

a.

chmod o+e script.sh

b.

chmod o+x script.sh

c.

chmod u+e script.sh

d.

chmod u+x script.sh

Answer: (d).chmod u+x script.sh Explanation:You must set the user (owner) bit to execute (x) to allow the execution of a Bash script, and the chmod u+x command performs this task.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which one of the following commands will allow the file owner to execute a Bash script?

Similar Questions

Discover Related MCQs

Q. Which one of the following statements does not correctly describe the Ruby programming language?

Q. Which of the following operating systems support PowerShell interpreters?

Q. How does modifying IP addresses in routine activities contribute to penetration testing?

Q. What is the role of automated code in the configuration analysis of target systems?

Q. How can scripting contribute to penetration testing?

Q. In penetration testing, what is the purpose of automated code that scans systems?

Q. How do libraries contribute to code reuse?

Q. What is the primary goal of attackers when launching remote access in penetration testing?

Q. How do procedures and functions contribute to code reuse?

Q. In penetration testing, what is the purpose of analyzing exploit code?

Q. What is the role of classes in code reuse?

Q. How is code reuse commonly achieved in software development?

Q. What is the root node in a tree data structure?

Q. What is a common alternative term for key/value pairings in languages like Python?

Q. What is JSON?

Q. What keyword does Python use in its error-handling framework, equivalent to the catch keyword in other languages?

Q. In Ruby, which keywords are used to include commands in the try and error-handling clauses of the try..catch framework?

Q. In PowerShell, what keyword is used to catch errors in the try..catch framework?

Q. What is the purpose of the try..catch framework in programming languages?

Q. Which programming language does not provide an explicit error-handling functionality and requires developers to write their own error-handling routines using conditional execution clauses?