ExamGecko
Question list
Search
Search

Question 24 - 010-160 discussion

Report
Export

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.
Answers
A.
The file's extension should be changed from .sh to .bin.
B.
The execute bit should be set in the file's permissions.
Answers
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.
Answers
C.
The user executing the script should be added to the exec group.
D.
The SetUID bit should be set in the file's permissions
Answers
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.
Answers
E.
The script should be run using #!./test. sh instead of ./test.sh.
Suggested answer: B
asked 18/09/2024
VEDA VIKASH Matam Shashidhar
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first