find -permの「+6000」と「/6000」の違いは何ですか?

find -permの「+6000」と「/6000」の違いは何ですか?

私のシステムですべてのsetuid / setgidバイナリを見つけようとしています。オンラインで2つの異なる方法を見つけました。

違いは何ですか

find / -perm +6000 -type f

そして

find / -perm /6000 -type f

後者はより頻繁に言及され、結果は同じです。ファイルが失われていないことを確実に確認したいと思います。彼らは同じですか?

Ubuntuは信頼できるボックスでこれを実行していますが、後で変更される可能性があります。

ベストアンサー1

マニュアルfindページでは、以下について説明します。

   -perm +mode
          Deprecated,  old way of searching for files with any of the per‐
          mission bits in mode set.  You should use -perm  /mode  instead.
          Trying to use the `+' syntax with symbolic modes will yield sur‐
          prising results. […]

はい。同じ内容ですが-perm /mode

おすすめ記事