Cleaning up tens of millions of files in a few hundred directory.
Many have different owners, lots of private authorities (we have a big
savsecdta issue),
I want to end up with this:

Owner QVIASCNT
Primary Group QVIGROUP
Auth list IMAGEFILES
*PUBLIC *AUTL

Trying to avoid multiple passes through all of this because there are many
variations of owners and users

Owner SUSAN
Primary Group QVIGROUP
Auth list *NONE
*PUBLIC *RX
SUSAN *RWX
MARY *RWX
JIM *RWX


I can see how to do individual CHOWN and CHGRP, but looking for a better
way (and also need to not crash the operation)
find /image1 -user SUSAN -exec chown qvigroup {} \;

Jim Franz




Return to Archive home page | Return to MIDRANGE.COM home page