Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2015 22:16:38 +0200
From:      Toomas Aas <toomas.aas@raad.tartu.ee>
To:        questions@freebsd.org
Subject:   bsdtar and ACLs
Message-ID:  <20150219221638.46103bl5gd4u5ke8@webmail.raad.tartu.ee>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150219221638.46103bl5gd4u5ke8>