Security Basics mailing list archives

Re: securing your suid/sgid files


From: James Hammer <bugtraq () callone net>
Date: Fri, 04 Mar 2005 14:56:37 -0600

nethic wrote:

hi i'm new to linux and am wondering how i can find my SUID and world writable files on my system i am running fedora core 1 legacy . thank you
I am running Debian but I think this should be the same on Fedora.

Something like this would help you find all world writable files:

find / -perm -ugo=w

If you wanted strictly files (i.e. not directories) you could do the following:

find / -type f -perm -ugo=w

For the SUID this word probably work:

find / -perm +ugo=s

'man find' or 'info find' may have more information. There also may be other ways.

--
James Hammer


Current thread: