Show Table of Contents
20.4. ACL の取り込み
ファイルまたはディレクトリー用の既存の ACL を判別するには、
getfacl コマンドを使用します。以下の例では、getfacl がファイルの既存 ACL を判別するために使用されています。
例20.4 ACL の取り込み
# getfacl home/john/picture.png
上記のコマンドは次のような出力を返します。
# file: home/john/picture.png # owner: john # group: john user::rw- group::r-- other::r--
デフォルト ACL の設定されたディレクトリーが指定されている場合、デフォルト ACL も以下のように表示されます。たとえば、
getfacl home/sales/ により以下のような出力が表示されます。
# file: home/sales/ # owner: john # group: john user::rw- user:barryg:r-- group::r-- mask::r-- other::r-- default:user::rwx default:user:john:rwx default:group::r-x default:mask::rwx default:other::r-x

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.