Date: Sat, 4 Mar 2017 16:13:38 +0100 From: Kurt Jaeger <pi@FreeBSD.org> To: Edward Tomasz Napiera??a <trasz@FreeBSD.org> Cc: Kurt Jaeger <pi@FreeBSD.org>, stable@freebsd.org Subject: Re: How to copy ACLs on ZFS with tar ? Message-ID: <20170304151338.GH13006@home.opsec.eu> In-Reply-To: <7E014FF3-6D2D-4397-B81A-07B87DA904F3@FreeBSD.org> References: <20170304115033.GF13006@home.opsec.eu> <7E014FF3-6D2D-4397-B81A-07B87DA904F3@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! > > I have a file with the following ACL (in fact, a whole tree with files > > like that): > > > > srv$ getfacl myfile > > # file: myfile > > # owner: myuser > > # group: domain-users > > group:myuser:rw-p--aARWcCo-:-------:allow > > group@:rw-p--a-R-c---:-------:allow > > everyone@:rw-p--a-R-c---:-------:allow > > > > How do I copy this file or the tree with tar, while preserving the ACLs ? > > Or do I have to use something else ? > > Not sure about tar, but plain "cp -p" should do the trick. This worked fine. Thanks! Shouldn't tar work, too ? According to this commit to libarchive: https://github.com/libarchive/libarchive/commit/59e3c3919b66cc1f1a59a9c32307befe015f40e8 it will be supported soon. -- pi@opsec.eu +49 171 3101372 3 years to go !
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170304151338.GH13006>