Linux_FoundationLinux_Foundation
LFCS · Question #263
LFCS Question #263: Real Exam Question with Answer & Explanation
The correct answer is A: find /usr -uid 0 -perm +4000. The find command can locate files with specific permissions and ownership, such as SUID files owned by root.
Submitted by stefanr· Apr 18, 2026Essential Commands
Question
Which of the following find commands will print out a list of suid root files in /usr?
Options
- Afind /usr -uid 0 -perm +4000
- Bfind -user root +mode +s /usr
- Cfind -type suid -username root -d /usr
- Dfind /usr -ls \*s\* -u root
- Efind /usr -suid -perm +4000
Explanation
The find command can locate files with specific permissions and ownership, such as SUID files owned by root.
Common mistakes.
- B.
+mode +sare not validfindprimaries for permission checks; the correct syntax for SUID permissions involves-perm. - C.
-type suidis not a valid argument for the-typeprimary, and-usernameis not a standardfindprimary. - D. The
*s*is a pattern for file names, not a permission test, and-u rootis not the correct syntax for specifying user ownership. - E.
-suidis not a standardfindprimary for locating SUID files; the correct way is to use the-permprimary.
Concept tested. find command for SUID files
Reference. https://man7.org/linux/man-pages/man1/find.1.html
Topics
#find command#file permissions#SUID bit#user ownership
Community Discussion
No community discussion yet for this question.