Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
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:
find manual page, -uid and -perm options description
Find Command in Linux with Practical Examples, Example 8: Find Files with SUID and SGID Permissions
Pete
5 months agoLucina
5 months agoAzalee
5 months agoEllsworth
6 months agoNorah
6 months agoSolange
6 months agoTijuana
6 months agoArthur
7 months agoTequila
7 months agoKenneth
7 months agoStephanie
7 months agoLettie
7 months agoLorrine
8 months agoLatia
8 months agoGeraldo
12 months agoNydia
11 months agoJani
11 months agoMitsue
11 months agoTonette
12 months agoAudra
12 months agoCecilia
12 months agoDoyle
11 months agoTeddy
11 months agoKaran
1 year agoOdette
11 months agoToshia
12 months agoOtis
12 months agoKarl
1 year agoRodrigo
1 year agoCelia
12 months agoLayla
12 months agoAriel
12 months agoSamira
1 year ago