Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

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

#find#suid#uid#perm#root
A

find /usr -uid 0 -perm +4000

Correct
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

Resolution & Explanations

find /usr -uid 0 -perm +4000 is the correct command: -uid 0 filters by user root, and -perm +4000 (or /4000) filters by the SUID bit.