Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Security Basics: Re: securing your suid/sgid files

Re: securing your suid/sgid files

From: James Hammer <jhammer_at_callone.net>
Date: Fri, 04 Mar 2005 12:49:21 -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
Received on Mar 07 2005
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos