Exam PT0-002 All QuestionsBrowse all questions from this exam
Question 1

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

    Correct Answer: A

    A

    Reference:

    https://newbedev.com/chmod-u-x-versus-chmod-x

Discussion
RRabbitOption: A

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.

KBrown2021

Passed my exam today by the skin of my teeth. There was 65 questions, 4 being PBQs. I made 774. Most of the questions I had wasn't on here. You will need other materials unless you know your sh*t. Pay special attention to the payloads lab and make sure you actually know what goes where and not just the order. Good Luck!

aa9ee6c

im here in the same situation KB but i had 5 pbqs. I just missed with a 731 and was coming here hoping this would cover the ~50% of material I hadnt seen in all my other study materials. I think we had the same payload question.

outnumber_gargle024

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.

Rocky_sy

none sense question. why would owner needs the pentester to give them permission ? it makes no sense. the owner already have the permission

congnguyen92Option: A

A. chmod u+x script.sh

AlizadeOption: A

A. chmod u+x script.sh

bieecopOption: 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.

shezzu

anyone recently passed this exam? is this dump still relevant? are the pbq's same?

Ottris

I did. I agree with outnumber_gargle024: this dump is still good, but the answers selected here are often wrong. For a good result, you should check the answers from the CompTIA book. Also, during the CompTIA course in class, we figured that sometimes CompTIA itself doesn't select an optimal solution. In this test, you must choose the correct one according to CompTIA, not always the most optimal answer.

aa9ee6c

just on the 52 questions -- when I took the exam there were 65 questions and 5 of them were the hardest pbds ive seen. ive taken 4 other comptia exam and none of them had as few as the pentest.

outnumber_gargle024

Testing within 48 hours - will update.

outnumber_gargle024

delete this comment fam sammy

[Removed]Option: A

A. chmod u+x script.sh

KeToopStudyOption: 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.