A penetration tester runs the following command on a system: find / -user root `"perm -4000 `"print 2>/dev/null Which of the following is the tester trying to accomplish?
A.
Set the SGID on all files in the / directory
B.
Find the /root directory on the system
C.
Find files with the SUID bit set
D.
Find files that were created during exploitation and move them to /dev/null
Answer is C:
SUID ( S et owner U ser ID up on execution) is a special type of file permissions given to a file.
SUID is defined as giving temporary permissions to a user to run a program/file with the permissions of the file owner rather that the user who runs it.
In simple words users will get file owner's permissions as well as owner UID and GID when executing a file/program/command.
https://www.linux.com/training-tutorials/what-suid-and-how-set-suid-linuxunix/
It's C, the 2>/dev/null is output redirection, it simply sends all the error messages to infinity and beyond preventing any error messages to appear in the terminal session.
This section is not available anymore. Please use the main Exam Page.PT1-002 Exam Questions
Log in to ExamTopics
Sign in:
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.
ALBaqir
2 years, 2 months agoResStapler
2 years, 8 months agocuernov
3 years agoAdonist
3 years, 1 month agoDavar39
3 years, 3 months agotokhs
3 years, 4 months agoBinarySoldier
3 years, 5 months ago