Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 102-500 Exam - Topic 3 Question 104 Discussion

Posted by Ozell on Apr 30, 2025 at 05:13 PM

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

Suggested Answer: A

This command will find all the files in the /usr directory that have the user ID (UID) of 0, which is the root user, and have the permission of 4000, which is the SUID bit. The SUID bit allows the file to be executed with the privileges of the file owner, regardless of who runs it. The -uid option tests for a specific UID, and the -perm option tests for a specific permission. The + sign before the permission means that at least those bits are set; the - sign means that exactly those bits are set. The other options are either invalid or do not match the criteria.Reference:

LPIC-1 Exam 102 Objectives, Topic 104: Devices, Linux Filesystems, Filesystem Hierarchy Standard, 104.4 Find system files and place files in the correct location, Key Knowledge Areas: Search for files by type, size, or time

find manual page, -uid and -perm options description

Find Command in Linux with Practical Examples, Example 8: Find Files with SUID and SGID Permissions


Get Premium 102-500 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
33 comments · newest first
PE
Pete 10 months ago
C is just confusing, not sure what they were thinking.
LU
Lucina 10 months ago
Wait, can you really use +4000 like that? Seems off.
AZ
Azalee 10 months ago
B is definitely wrong, it’s not valid syntax.
EL
Ellsworth 11 months ago
I think E looks good too.
NO
Norah 11 months ago
A is the correct command!
SO
Solange 11 months ago
I remember that the SUID bit is important, but I can't recall if -suid is the right flag in option E. It feels a bit off to me.
TI
Tijuana 11 months ago
I practiced a similar question where we had to find files by user and permissions. I think the syntax in option B is off, though.
AR
Arthur 12 months ago
I'm not entirely sure, but I feel like the SUID bit is represented by +4000 in the permissions. Maybe option E is correct?
TE
Tequila 12 months ago
I think option A looks familiar; I remember it uses -uid for user ID, which should be 0 for root.
KE
Kenneth 1 year ago
I've got this! The key is to use the -uid and -perm options to find the files owned by root with the SUID bit set. I'm pretty confident that option A is the right answer.
ST
Stephanie 1 year ago
Ah, this is a tricky one. I'm not familiar with all the different find command options, so I'll need to review my notes and try to figure out the correct syntax.
LE
Lettie 1 year ago
Okay, let's see. I know I need to look for files owned by root with the SUID bit set in the /usr directory. I think option A might be the right one, but I'll double-check the syntax just to be sure.
LO
Lorrine 1 year ago
Hmm, I'm not too sure about this. The different options for the find command are a bit confusing to me. I'll need to think this through carefully.
LA
Latia 1 year ago
This looks like a straightforward find command question. I think I can handle this one.
GE
Geraldo 1 year ago
Haha, this question is a real head-scratcher. I bet the exam writer has a twisted sense of humor.
NY
Nydia 1 year ago
↳ replying to Geraldo
C) find -type suid -username root -d /usr
JA
Jani 1 year ago
↳ replying to Geraldo
B) find -user root +mode +s /usr
MI
Mitsue 1 year ago
↳ replying to Geraldo
A) find /usr -uid 0 -perm +4000
TO
Tonette 1 year ago
I'm not sure, but I think option B) find -user root +mode +s /usr could also be a possibility
AU
Audra 1 year ago
Option D is the way to go. The \*s\* pattern will definitely find all the SUID files, right? *winks*
CE
Cecilia 1 year ago
Wait, what's the SUID bit again? I need to brush up on my Linux permissions.
DO
Doyle 1 year ago
↳ replying to Cecilia
User 2
TE
Teddy 1 year ago
↳ replying to Cecilia
User 1
KA
Karan 1 year ago
I think option E is the right one. It looks more straightforward to me.
OD
Odette 1 year ago
↳ replying to Karan
I agree with you, option A seems to be the most accurate choice.
TO
Toshia 1 year ago
↳ replying to Karan
No, I believe option A is correct. It specifies the UID and permissions criteria clearly.
OT
Otis 1 year ago
↳ replying to Karan
I think option E is the right one. It looks more straightforward to me.
KA
Karl 1 year ago
I disagree, I believe the correct answer is E) find /usr -suid -perm +4000
RO
Rodrigo 1 year ago
The correct answer is A. The find command with the -uid 0 and -perm +4000 options will list files owned by root with the SUID bit set.
CE
Celia 1 year ago
↳ replying to Rodrigo
D) find /usr -ls *s* -u root
LA
Layla 1 year ago
↳ replying to Rodrigo
That makes sense, thanks for the explanation.
AR
Ariel 1 year ago
↳ replying to Rodrigo
A) find /usr -uid 0 -perm +4000
SA
Samira 1 year ago
I think the answer is A) find /usr -uid 0 -perm +4000
0/2000 characters

Save Cancel