setfacl(1) Recursively?

Robert Watson rwatson at FreeBSD.org
Sun Oct 22 12:27:09 UTC 2006


On Sat, 21 Oct 2006, Atom Powers wrote:

> On 10/21/06, David Stanford <dthomas53 at gmail.com> wrote:
>> I'm simply trying to set ACLs on a few directories but don't see an option 
>> to recursively apply this to the whole directory's contents. Does applying 
>> the ACL to a directory inherently apply it to all other files and folders 
>> within the directory? I've browsed the man page and handbook but can't find 
>> the info. Thanks.
>
> Hmm, I don't see a recursive option either. You should be able to set ACL on 
> files in a direcotry with `setfacl -m <blah> *`, and pipe that through 'find 
> -type:d` and xargs to do an entire directory tree.

Patches to add a recursive option to setfacl would be most appreciated.  If 
you (or someone else reading this) does work on it, make sure to implement the
standard set of recursion variations (symlinks, etc).

Thanks,

Robert N M Watson
Computer Laboratory
University of Cambridge


More information about the freebsd-questions mailing list