From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 20:16:46 2015 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A513F44C for ; Thu, 19 Feb 2015 20:16:46 +0000 (UTC) Received: from kuller.raad.tartu.ee (kuller.raad.tartu.ee [213.184.43.8]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58A05C48 for ; Thu, 19 Feb 2015 20:16:46 +0000 (UTC) Received: from kuller.raad.tartu.ee (localhost [127.0.0.1]) by kuller.raad.tartu.ee (Postfix) with ESMTP id F239C39845 for ; Thu, 19 Feb 2015 22:16:43 +0200 (EET) X-Virus-Scanned: amavisd-new at post.raad.tartu.ee Received: from kuller.raad.tartu.ee ([127.0.0.1]) by kuller.raad.tartu.ee (kuller.raad.tartu.ee [127.0.0.1]) (amavisd-new, port 10024) with LMTP id h5OYCUo0h0BN for ; Thu, 19 Feb 2015 22:16:39 +0200 (EET) Received: by kuller.raad.tartu.ee (Postfix, from userid 80) id 90B5D39828; Thu, 19 Feb 2015 22:16:38 +0200 (EET) Received: from 76-20-190-90.dyn.estpak.ee (76-20-190-90.dyn.estpak.ee [90.190.20.76]) by webmail.raad.tartu.ee (Horde Framework) with HTTP; Thu, 19 Feb 2015 22:16:38 +0200 Message-ID: <20150219221638.46103bl5gd4u5ke8@webmail.raad.tartu.ee> Date: Thu, 19 Feb 2015 22:16:38 +0200 From: Toomas Aas To: questions@freebsd.org Subject: bsdtar and ACLs MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.3.7) X-Originating-IP: 90.190.20.76 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2015 20:16:46 -0000 Hello! I was under impression that bsdtar should, by default, preserve filesystem ACLs. However, this is not the case here, as seen by the following test. What am I missing? # touch testfile.txt # setfacl -m u:user2:rwx testfile.txt # getfacl testfile.txt # file: testfile.txt # owner: root # group: users user::rw- user:user2:rwx group::rw- mask::rwx other::r-- # ls -l testfile.txt -rw-rwxr--+ 1 root users 0 Feb 19 22:07 testfile.txt # tar cvf testfile.tar testfile.txt a testfile.txt # rm testfile.txt # tar xvf testfile.tar x testfile.txt # ls -l testfile.txt -rw-rwxr-- 1 root users 0 Feb 19 22:07 testfile.txt # getfacl testfile.txt # file: testfile.txt # owner: root # group: users user::rw- group::rwx other::r-- # uname -a FreeBSD hostname.tld 10.1-RELEASE-p4 FreeBSD 10.1-RELEASE-p4 #0 r277235: Mon Jan 19 21:37:54 EET 2015 toomas@hostname.tld:/usr/obj/usr/src/sys/SPUTNIK amd64 # tar --version bsdtar 3.1.2 - libarchive 3.1.2 -- Toomas Aas