Hi All,

Brian Martin wrote:
> I think he meant more like ...
> find / \(-perm -004000 -o -perm -002000 \) -type f -print

This is particularly good;
 find / \( -perm -4000 -o -perm -2000 \) -type f -exec ls -l {} \;

It gives as output..
-rwsr-xr-x   1 root     root        56852 May  8  1998
/usr/X11R6/bin/rxvt
-rwxr-sr-x   1 root     games       32060 Mar 22  1999
/usr/X11R6/bin/xbill
-rws--x--x   1 root     root         6116 Apr 19  1999
/usr/X11R6/bin/Xwrapper
-rws--x--x   1 root     bin       1043140 Jun  8  1999
/usr/X11R6/lib/X11/xmcd/bin-Linux-i586/xmcd

Note that when run as normal user there will be directories that it does
not search.

> >> i want to see a list of all files in my system which are setuid or setgid.
> >> is there any command for that?

Mike

--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02 9514 1628 
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to