You work as a Network Administrator for Perfect World Inc. The company has a Linux-based
network. You have configured a Linux server to connect to the Internet. Before connecting it to the
Internet, you want to check all the files on which SUID has been set. Which of the following
commands will you choose to list all such programs?
A.
find /-perm -2000
B.
ls -l
C.
ls -suid
D.
find /-perm -4000
Explanation:
In order to accomplish the task, you will have to execute the following command: find /-perm -4000
This command will search the current directory and its sub-directories for all the files on which
SUID has been set.
Answer options C and B are incorrect. The ls command is used to list all files in the current
directory and its subdirectory.
Answer option A is incorrect. This will find all the files on which SGID is set.