On Tue, 31 Mar 1998, Dave Wreski wrote:
>
> > I usually do a:
> >
> > find / \( -perm +4000 -o -perm +2000 \) -type f -exec ls -l {} \;
>
> Doesn't that find files that are _only_ SUID or SGID? The `+' means it
> requires at least those permissions. Try using a `-' instead.
>
> It looks to be the same for the most part, but I'm not sure it will always
> be..
>
To be honest, I cant figure out the difference between:
find / \( -perm +4000 -o -perm +2000 \) -print
and
find / \( -perm -4000 -o -perm -2000 \) -print
I think they will both consistently do the job correctly in all situations
that I have attempted.
The GNU find man page states:
-perm -mode
All of the permission bits mode are set for the
file.
-perm +mode
Any of the permission bits mode are set for the
file.
Dave
--- ---
David Goldsmith [EMAIL PROTECTED]
DEC Consulting http://www.dec.net
Software Development/Internet Security http://www.dec.net/~dhg
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.