PT0-002 · Question #12
PT0-002 Question #12: Real Exam Question with Answer & Explanation
The correct answer is C: Find files with the SUID bit set. SUID (Set owner User 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
Question
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?
Options
- ASet the SGID on all files in the /directory
- BFind the /root directory on the system
- CFind files with the SUID bit set
- DFind files that were created during exploitation and move them to /dev/null
Explanation
SUID (Set owner User 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.
Topics
Community Discussion
No community discussion yet for this question.