Re: Exclude some directories with getfacl -R /

Michael Tokarev <[email protected]> Mon, 31 Jul 2006 17:10:09 +0400
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <[email protected]>
Chris de Vidal wrote:
> I'm running a cron script which dumps the ACLs of the entire system like this:
> getfacl -R / > permissions.dump
> 
> But I get warnings like this:
> getfacl: Removing leading '/' from absolute path names
> getfacl: /proc/22036: No such file or directory
> 
> 
> This is a problem because I have to document every backup error (SOX compliance issues).  So every
> day I have to document this.
> 
> How can I have getfacl skip directories like /proc?

How about:

  find / [adjust options as you like] -print0 |
    xargs -0 getfacl

instead?

Ie, how about doing it the Unix Way (tm), where there are
a collection of tools each does a small task but does it
well.  Like, there's no need to implement find(1) in every
utility out there (*).

(*) There are cases like grep -r, chown -R, cp -r etc, all
trying to do something recursively.  But those are just so
common tasks -- using find for that will be too much typing... ;)

/mjt
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel