Security Basics mailing list archives

Re: securing your suid/sgid files


From: "O_o - joey_pogodzinski." <josephp8 () uwm edu>
Date: Fri, 4 Mar 2005 13:01:55 -0600 (CST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

## 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (OSF1)

iD8DBQFCKLClOtM/TpGgyUMRAiF2AJ98HYZBGBCIdDMllSLDbAsBmcM/bQCfW8BN
CMs2oagBizvl3xC8LnYT70g=
=dNOo
-----END PGP SIGNATURE-----


Current thread: