Security

Find setuid root Files

by damonp on September 10, 2009

in Snippets

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%

{ 0 comments }