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
7 months agoLucina
7 months agoAzalee
7 months agoEllsworth
7 months agoNorah
7 months agoSolange
8 months agoTijuana
8 months agoArthur
8 months agoTequila
8 months agoKenneth
9 months agoStephanie
9 months agoLettie
9 months agoLorrine
9 months agoLatia
9 months agoGeraldo
1 year agoNydia
1 year agoJani
1 year agoMitsue
1 year agoTonette
1 year agoAudra
1 year agoCecilia
1 year agoDoyle
1 year agoTeddy
1 year agoKaran
1 year agoOdette
1 year agoToshia
1 year agoOtis
1 year agoKarl
1 year agoRodrigo
1 year agoCelia
1 year agoLayla
1 year agoAriel
1 year agoSamira
1 year ago