Linux Foundation Certified System Administrator (LFCS) — Question 80
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
Answer options
- A. find /usr -uid 0 -perm +4000
- B. find -user root +mode +s /usr
- C. find -type suid -username root -d /usr
- D. find /usr -ls \*s\* -u root
- E. find /usr -suid -perm +4000
Correct answer: A
Explanation
The correct answer, A, accurately uses the find command to specify the directory, user ID of 0 (root), and the SUID permission bit with +4000. Option B is incorrect due to the improper syntax for specifying permissions, while C and D do not use the correct flags for finding SUID files. Option E is close, but the syntax is not standard for the find command, leading to ambiguity.