## This will create a file containing a list of all the SUID/SGID files.
# /usr/bin/find / -type f \( -perm -004000 -o -perm -002000 \) \
-exec ls -lg {} \; 2>/dev/null >suidfiles.txt
## To check how many links a file has, you can use the stat command.
# stat /bin/su
## Finding multiply linked suid/sgid binaries
find / -type f \( -perm -004000 -o -perm -002000 \) -links +1 -ls
>
>> On Fri, 4 Mar 2005, nethic wrote:
>>
>>> Date: Fri, 4 Mar 2005 10:17:08 -0500
>>> From: nethic <nethic_at_users.sourceforge>, net_at_localhost.localdomain
>>> To: security-basics_at_securityfocus.com
>>> Subject: securing your suid/sgid files
>>>
>>> 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
>>>
>
--
___________________________________________[o_O]___
joey_pogodzinski_=_infommando_at_uwm.edu//414.324.2483
GOAT.IMT.UWM.EDU||WWW.37H3R.NET||WWW.ZODRECORDS.COM
Received on Mar 07 2005