[OmniOS-discuss] issue 8984 (fix for 6764 breaks ACL inheritance)
Andy Fiddaman
omnios at citrus-it.net
Fri Mar 9 08:59:42 UTC 2018
On Thu, 8 Mar 2018, Paul B. Henson wrote:
; > From: Andries Annema
; > Sent: Thursday, March 8, 2018 8:06 AM
; >
; > But the issue seems unresolved when:
; >
; > - using rsync to copy stuff over from one dataset to another.
;
; I don't think rsync understands ZFS ACLs? So it is most likely trying to duplicate the mode bits while copying, using chmod...
rsync explicity does do that, it tries to make the permissions on the target
file match the source, including ACLs where it can (I'm also not sure if it
supports NFSv4 ACLs).
>From the man page:
To give new files the destination-default permissions,
make sure that the --perms option is off and use
--chmod=ugo=rwX (which ensures that all non-masked bits get
enabled).
So, give this a go:
rsync -a --no-p --no-g --chmod=ugo=rwX src/ dst/
The extra options need to come after -a.
Regards,
Andy
--
Citrus IT Limited | +44 (0)333 0124 007 | enquiries at citrus-it.co.uk
Rock House Farm | Green Moor | Wortley | Sheffield | S35 7DQ
Registered in England and Wales | Company number 4899123
More information about the OmniOS-discuss
mailing list