Suramya's Blog : Welcome to my crazy life…

May 7, 2005

How to find suid files on a linux system

Filed under: Tutorials — Suramya @ 3:53 AM

The following commands will list all suid files on a linux system:

Method 1:

find / -perm +ugo=s

Method 2:

find / -perm +4000

Method 3:

/usr/bin/find / -type f \( -perm -004000 -o -perm -002000 \) -exec ls -lg {} \; 2>/dev/null >suidfiles.txt

– Suramya

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress