Re: recursively copying access ACL to default ACL

Andreas Gruenbacher <[email protected]> Thu, 1 Jul 2004 09:03:20 +0200
Newsgroups gmane.linux.file-systems.acl.devel
Organization SUSE Labs
Message-ID <[email protected]>
On Thursday 01 July 2004 03:01, Scott Mcdermott wrote:
> here's what I'm doing now:
>
> find -type d -exec sh -c \
>         'getfacl --access "{}" | setfacl -dM - "{}"' \;
>
> is there a quicker way to do this?

In principle the command is just fine. YOu can cut down on the number of 
processes generated, e.g.,

   find -type d | \
   xargs getfacl --access | \
   sed -e 's/^[^# ]/default:/' | \
   setfacl --restore=-

that should be _really_ fast.

Cheers,
-- 
Andreas Gruenbacher <[email protected]>
SUSE Labs, SUSE LINUX AG
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel