Re: Setuid?and?setgid?files (2) (?)

From: David Correa (tech@linux-tech.com)
Date: 01/15/02


Date: Tue, 15 Jan 2002 12:31:28 -0800 (PST)
From: David Correa <tech@linux-tech.com>
To: security-discuss@linuxsecurity.com

On Tue, 15 Jan 2002, David Correa wrote:
> On Mon, 14 Jan 2002, Shalom Nevet wrote:
> > find / -type f -a -perm -4000 -o -print
> >
> > find / -type f -a -perm -2000 -o -print
> >
> > Please note: -4000 is suid, -2000 is the guid.
> Hiya ..
>
> do
>
> find / -type f -a -perm -4000 -o -print > suid_files &
> find / -type f -a -perm -2000 -o -print > guid_files &

mmm, i just pasted the lines Shalom sent with out checking : (
(is a better idea to redirect the output to a file)

I got better results with
find / -type f -perm +6000 -exec ls -l {} \; > suid_files &

Note: This will find both set user id and set group id
programs

Regards,

David Correa
http://www.linux-tech.com

------------------------------------------------------------------------
     To unsubscribe email security-discuss-request@linuxsecurity.com
         with "unsubscribe" in the subject of the message.