The current directory contains the following file: -rw-r-r- 1 root exec 24551 Apr 2 12:36 test.sh The file contains a valid shell script, but executing this file using ./test.sh leads to this error: bash: ./test.sh: Permission denied What should be done in order to successfully execute the script?
A) The file's extension should be changed from . sh to .bin. The file's extension should be changed from . sh to .bin.
B) The execute bit should be set in the file's permissions.
C) The user executing the script should be added to the exec group. The user executing the script should be added to the exec group.
D) The SetUID bit should be set in the file's permissions
E) The script should be run using #!./test. sh instead of ./test.sh. The script should be run using #!./test. sh instead of ./test.sh.
Correct Answer:
Verified
Q18: Which of the following are typical services
Q32: What are the differences between hard disk
Q55: The current directory contains the following file:
Q56: Which of the following outputs could stem
Q58: Which of the following commands will search
Q60: Which package management tool is used in
Q61: Which of the following commands output the
Q62: Which of the following outputs comes from
Q63: What are the differences between a private
Q64: Which of the following DNS record types
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents