Find setuid root Files

by damonp on September 10, 2009

Find all setuid / setgid files owned by root:

find / -user root -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld '{}' \;

Find all setuid / setgid files owned by any user:

find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld '{}' \;

Popularity: 2% [?]

Leave a Comment

Previous post:

Next post: