Security Basics mailing list archives

RE: securing your suid/sgid files


From: "O_o - joey_pogodzinski." <josephp8 () uwm edu>
Date: Fri, 4 Mar 2005 14:34:44 -0600 (CST)

## 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@users.sourceforge>, net@localhost.localdomain
To: security-basics () 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 () uwm edu//414.324.2483
GOAT.IMT.UWM.EDU||WWW.37H3R.NET||WWW.ZODRECORDS.COM


Current thread: