Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 (?) , you can switch to a simple comment.
Switch to a voting comment New
kiev
Highly Voted 3 years, 2 months ago
B is the answer. You need to add X to the file permissions.
upvoted 7 times
...
Vovanich
Most Recent 1 year, 4 months ago
Selected Answer: B
The execute bit should be set in the file's permissions.
upvoted 2 times
...
linvidia
1 year, 5 months ago
Selected Answer: B
We need to add "x" to the file permissions.
upvoted 2 times
...
Elv_G
2 years, 4 months ago
are the "" supposed to be -(dashes)?
upvoted 2 times
...
MIU
3 years, 5 months ago
"The execute bit should be set in the file's permissions. " Is this English grammatically correct?
upvoted 4 times
jfret
1 year, 3 months ago
First lesson in IT. Grammar do not matter lol
upvoted 2 times
...
boblee
3 years, 5 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 ...