1825795 Members
2264 Online
109687 Solutions
New Discussion

Finding files.....

 
SOLVED
Go to solution
Lucien Wolfs
Valued Contributor

Finding files.....

Hi,

I trying to find out how to find files that have a bit in the "others" byte set,
something like: a+w and/or a+r and/or a+x.


Have studied the find man page, tried many things, but seem not to be able to do so.
I hope anybody ever done something before, so who will help me..?!

2 REPLIES 2
Andreas Voss
Honored Contributor
Solution

Re: Finding files.....

Hi,

here my solution:

find \( -perm -o+r -o -perm -o+w -o -perm -o+x \) -print ....

Regards
Lucien Wolfs
Valued Contributor

Re: Finding files.....

The fitpall I fell into was:

find . \( -perm -o+r -o -perm -o+w -o -perm -o+x \) -exec ls -lia {} \;

If the directory is world readable/writeable/executable, a listing of '.' is presented !