|
From: | R. Diez |
Subject: | [Acl-devel] Find out whether there are any ACLs at all |
Date: | Wed, 18 Jul 2018 10:23:00 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hi there:I want to write a shell script that tells me whether a particular directory has extended permissions (ACLs) at all.
Command 'ls' signals such extended permissions by appending a '+' character to the permissions. But parsing ls's output is not very clean.
I can remove all such extended permissions with: setfacl --remove-all <file>But I could not find any option in getfacl to give me that information in an easy-to-parse way.
Thanks in advance, rdiez
[Prev in Thread] | Current Thread | [Next in Thread] |