nerdexam
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 +s are not valid find primaries for permission checks; the correct syntax for SUID permissions involves -perm.
  • C. -type suid is not a valid argument for the -type primary, and -username is not a standard find primary.
  • D. The *s* is a pattern for file names, not a permission test, and -u root is not the correct syntax for specifying user ownership.
  • E. -suid is not a standard find primary for locating SUID files; the correct way is to use the -perm primary.

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.

Full LFCS PracticeBrowse All LFCS Questions