Linux

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 }

Grep OR Operator

by damonp on November 9, 2006

in Snippets

I always forget this…

php -i | grep "Zend\|Cube"

Popularity: 100%

{ 9 comments }