exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 1 discussion

Actual exam question from CompTIA's PT0-002
Question #: 1
Topic #: 1
[All PT0-002 Questions]

Which of the following commands will allow a penetration tester to permit a shell script to be executed by the file owner?

  • A. chmod u+x script.sh
  • B. chmod u+e script.sh
  • C. chmod o+e script.sh
  • D. chmod o+x script.sh
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
RRabbit_111
Highly Voted 1 year, 11 months ago
It's important to note that permissions on Linux are divided into three categories: owner, group, and others. The "u" in the argument refers to the owner of the file, "g" refers to the group and "o" refers to others. Also, the file permissions are divided into three types: read, write and execute. "r" refers to read permission, "w" refers to write permission and "x" refers to execute permission. So, this command allows the owner of the file "script.sh" to execute the file.
upvoted 17 times
...
outnumber_gargle024
Highly Voted 7 months, 2 weeks ago
Passed yesterday - this dump is still good. Make sure you read the descriptions because the selected answers are often wrong. Read through all of the descriptions - many of the group answers are chat-GPT 3.5 and are also incredibly wrong the right answers to these questions are in the discussions and people are linking sources - great for studying.
upvoted 9 times
...
Alarming_Subject
Most Recent 2 weeks, 2 days ago
Selected Answer: A
A is correct. Only about 40% of exam questions were from here. I didn't go through PT1 ones, maybe there were more there. 3 out of 5 PBQs from here. Passed by the skin of my teeth tbh, expected it to be easier after studying all 400+ questions. Lots of scripting and tool output questions.
upvoted 2 times
...
MeisAdriano
5 months, 1 week ago
Selected Answer: A
obviously chmod u+x script.sh
upvoted 1 times
...
Rocky_sy
7 months ago
none sense question. why would owner needs the pentester to give them permission ? it makes no sense. the owner already have the permission
upvoted 2 times
...
congnguyen92
11 months, 2 weeks ago
A. chmod u+x script.sh
upvoted 2 times
...
Alizade
1 year, 2 months ago
Selected Answer: A
A. chmod u+x script.sh
upvoted 2 times
...
KeToopStudy
1 year, 5 months ago
Selected Answer: A
Chmod has three types of permissions: owner, group, and others. The "u" arguments stands for the owner/user and it is the correct answer.
upvoted 1 times
...
bieecop
1 year, 5 months ago
Selected Answer: A
The chmod command is used to change the permissions of a file. In this case, the option u+x is used to grant execution permission to the file owner (u refers to the user/owner, and +x adds the execute permission). By running chmod u+x script.sh, the penetration tester is allowing the file owner to execute the shell script.
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