exam questions

Exam 010-160 All Questions

View all questions & answers for the 010-160 exam

Exam 010-160 topic 1 question 24 discussion

Actual exam question from LPI's 010-160
Question #: 24
Topic #: 1
[All 010-160 Questions]

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.
  • 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.
  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kiev
Highly Voted 2 years, 7 months ago
B is the answer. You need to add X to the file permissions.
upvoted 8 times
...
Vovanich
Most Recent 8 months, 4 weeks ago
Selected Answer: B
The execute bit should be set in the file's permissions.
upvoted 2 times
...
linvidia
10 months, 3 weeks ago
Selected Answer: B
We need to add "x" to the file permissions.
upvoted 2 times
...
Elv_G
1 year, 9 months ago
are the "" supposed to be -(dashes)?
upvoted 2 times
...
MIU
2 years, 10 months ago
"The execute bit should be set in the file's permissions. " Is this English grammatically correct?
upvoted 4 times
jfret
8 months ago
First lesson in IT. Grammar do not matter lol
upvoted 2 times
...
boblee
2 years, 10 months ago
its correct.
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago