Re: find -perm /<mode>
Wolf-Ruediger Juergens, Mon Jan 12 2009 18:34:44 GMT+0100 (CET):
> Hi,
>
> Am Montag 12 Januar 2009 schrieb Peter Jordan:
>> Hallo,
>>
>> kann mir hier vielleicht jemand erklären, wie find -perm /<mode>
>> funktioniert?
>>
>> find -perm 750 ist klar: sucht nach Dateien mit rwxr-x---
>>
>> find -perm -200 ist auch klar: sucht nach Dateien die mindestens das
>> Schreibrecht für den Besitzer gesetzt haben.
>>
>> Aber wonach sucht
>>
>> find -perm /<mode>
>
> Beispiele sind aber im man.
>
> --- > snip
> Both these commands do the same thing; search for files which are
> writable by both their owner and their group.
>
> find . -perm -444 -perm /222 ! -perm /111
> find . -perm -a+r -perm /a+w ! -perm /a+x
> These two commands both search for files that are readable for
> everybody ( -perm -444 or -perm -a+r), have at least one write bit set
> ( -perm /222 or -perm /a+w) but are not executable for anybody
> ( ! -perm /111 and ! -perm /a+x respectively).
>
> Gruß
> Wolf
>
>
>
>
>
>
dh find -perm /222 heißt, dass u+r oder g+r oder o+r gesetzt ist?
ob w oder x gesetzt ist, ist egal?
PJ
Reply to: