Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2017 13:37:10 +0000
From:      =?utf-8?Q?Edward_Tomasz_Napiera=C5=82a?= <trasz@FreeBSD.org>
To:        Kurt Jaeger <pi@FreeBSD.org>
Cc:        stable@freebsd.org
Subject:   Re: How to copy ACLs on ZFS with tar ?
Message-ID:  <7E014FF3-6D2D-4397-B81A-07B87DA904F3@FreeBSD.org>
In-Reply-To: <20170304115033.GF13006@home.opsec.eu>
References:  <20170304115033.GF13006@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 4 Mar 2017, at 11:50, Kurt Jaeger <pi@FreeBSD.org> wrote:
> 
> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7E014FF3-6D2D-4397-B81A-07B87DA904F3>