QuestionQ77Verified/Shells y scriptsCopy linkReport a problemAsk AstroTutorSave questionWhich of these commands locates every file owned by root with the SetUID bit enabled?Afind / -user root -perm -4000Bfind / -user 0 -mode +sCfind / -owner root -setuidDfind / -owner 0 -permbits 0x100000000Efind / --filter uid=1 --filter pers=u+sShow AnswerAnswerExplanationGNU find matches ownership by account name with -user root. Octal mode 4000 represents the set-user-ID permission, and -perm -4000 matches files for which that bit is set regardless of other permission bits.Learn moreGNU Findutils: Mode BitsGNU Findutils: Numeric ModesShow comments2Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion