Front page

ACL and xattrib (Cancel and Replace Previous)

4a65d1aecf2742988f18a99442958ebd
DOGSLED GLOSSARY STAIRWAY

From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr 10 19:39 ..
   
   # ------------------------------------------------------------------------------
   
   ~ % cat .obnam.conf
   [config]
   repository = /mnt/mynas/mybackup/test/obnam1
   verbose = true
   debug = true
   log = /home/obguy/obnam1.log
   
   # ------------------------------------------------------------------------------
   
   ~ % obnam backup test-obnam
   Backed up 14 files (of 14 found), containing 12.0 KiB.
   Uploaded 12.0 KiB file data in 5s at 2.4 KiB/s average speed.
   Total download amount 193.0 KiB.
   Total upload amount 404.0 KiB. Overhead was 585.0 KiB (144.6 %).
   
   # ------------------------------------------------------------------------------
   Check ACL again in source.
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ACL still there in source.
   
   delete the file with ACL
   ~/test-obnam % rm foo.bar4
   
   
   /test-obnam % l
   total 72K
   drwx------  2 obguy users 4.0K Apr 10 19:50 .
   drwx------ 223 obguy users  20K Apr 10 19:50 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   # ------------------------------------------------------------------------------
   List backup files using obnam
   
   /mnt/mynas/mybackup/test/obnam1
   % obnam \ls
   Generation 2 (2017-04-10 19:46:43 +0100 - 2017-04-10 19:46:44 +0100)
   drwxr-xr-x    20 root    root          4096 2017-04-01 10:23:56 /
   drwxr-xr-x    6 root    root          4096 2014-10-08 20:36:39 /home
   drwx------  223 obguy    users        20480 2017-04-10 17:46:42 /home/obguy
   drwx------    2 obguy    users          4096 2017-04-10 17:34:09 /home/obguy/test-obnam
   -rwx------    1 obguy    users          3629 2017-04-10 17:32:57 /home/obguy/test-obnam/areca_run.sh
   -rw-------    1 obguy    users            50 2017-04-10 17:32:57 /home/obguy/test-obnam/emacs_test.txt
   -rw-------    1 obguy    users            20 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar2
   -rw-------    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar3
   -rw---x---    1 obguy    users            23 2017-04-10 17:32:57 /home/obguy/test-obnam/foo.bar4
   -rw-------    1 obguy    users          2107 2017-04-10 17:32:57 /home/obguy/test-obnam/jdeps.txt
   -rw-------    1 obguy    users          250 2017-04-10 17:32:57 /home/obguy/test-obnam/ldap-mod.ldif
   -rw-------    1 obguy    users            0 2017-04-10 17:32:57 /home/obguy/test-obnam/tbab_log.txt
   -rw-------    1 obguy    users          1524 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.lyx
   -rw-------    1 obguy    users          261 2017-04-10 17:32:57 /home/obguy/test-obnam/test1.tex
   -rw-------    1 obguy    users            32 2017-04-10 17:32:57 /home/obguy/test-obnam/test2.tex
   -rw-------    1 obguy    users          4874 2017-04-10 17:32:57 /home/obguy/test-obnam/vnstat.png
   
   # ------------------------------------------------------------------------------
   Now restore from backup
   
   mkdir ~/test-obnam-restore/
   
   ~ % obnam restore --to=$HOME/test-obnam-restore $HOME/test-obnam/foo.bar4
   Restored 1 files, downloaded 23.0 B in 0s at 153.2 B/s average speed
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % l
   total 12K
   drwx------ 2 obguy users 4.0K Apr 10 20:00 .
   drwx------ 3 obguy users 4.0K Apr 10 20:00 ..
   -rw---x--- 1 obguy users  23 Apr 10 19:32 foo.bar4
   
   ~/test-obnam-restore/home/obguy/test-obnam
   % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::--x
   other::---
   
   
   % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   GROUP  users    --x   
   other
   
   
   *The  ACL after restore seems different. Instead of being x to user:test it is now x to group* 
   
   So If user test not part of group,then cannot x.
   And< I believe, all users part of group can now x.
   
   If the above normal/desired behavior?
   
   _______________________________________________
   obnam-support mailing list
   obnam-support@obnam.org
   http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-support-obnam.org
From: stef <stef_204@yahoo.com>
Date: Mon, 10 Apr 2017 19:15:12 +0000 (UTC)

   My original message (a draft version) was incorrect sorry.  Please disregard it.
   
   
   Below is the correct version, after further testing.
   
   
   --------------------
   
   
   Hi,
   
   There seems to be some undesirable behavior re. ACL's when restoring.
   
   Can you check the following and provide feedback as to whether expected behavior?
   
   Thanks.
   
   Stephen
   
   
   Setup below is
   
   Local box running Linux 4.10
   
   Remote is a NAS running Linux 2.8, with destination which is XFS formatted (so able to handle ACL/xattribs)
   
   This are the steps taken, on the local box, the exact commands:
   
   (I sanitized the text, replacing my user name with "obguy" ,etc.)
   
   
   
   ~/test-obnam % l
   total 76K
   drwx------  2 obguy users 4.0K Apr 10 19:34 .
   drwx------ 223 obguy users  20K Apr 10 19:34 ..
   -rwx------  1 obguy users 3.6K Apr 10 19:32 areca_run.sh
   -rw-------  1 obguy users  50 Apr 10 19:32 emacs_test.txt
   -rw-------  1 obguy users  20 Apr 10 19:32 foo.bar
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar2
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar3
   -rw-------  1 obguy users  23 Apr 10 19:32 foo.bar4
   -rw-------  1 obguy users 2.1K Apr 10 19:32 jdeps.txt
   -rw-------  1 obguy users  250 Apr 10 19:32 ldap-mod.ldif
   -rw-------  1 obguy users    0 Apr 10 19:32 tbab_log.txt
   -rw-------  1 obguy users 1.5K Apr 10 19:32 test1.lyx
   -rw-------  1 obguy users  261 Apr 10 19:32 test1.tex
   -rw-------  1 obguy users  32 Apr 10 19:32 test2.tex
   -rw-------  1 obguy users 4.8K Apr 10 19:32 vnstat.png
   
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   group::---
   other::---
   
   
   So NO ACL at that point.
   
   
   Now set ACL:
   
   ~/test-obnam % setfacl -m "u:test:x" foo.bar4
   
   
   Check ACL:
   ~/test-obnam % getfacl foo.bar4
   # file: foo.bar4
   # owner: obguy
   # group: users
   user::rw-
   user:test:--x
   group::---
   mask::--x
   other::---
   
   
   ~/temp % getfacl -t foo.bar4
   # file: foo.bar4
   USER  obguy      rw-   
   user  test      --x   
   GROUP  users    ---   
   mask            --x   
   other            --- 
   
   
   ACL is present.
   (User "test" can x)
   
   
   # ------------------------------------------------------------------------------
   
   Mount NAS using cifs
   
   sudo mount -t cifs //NAS/mybackup /mnt/mynas/mybackup \
       -o user=mybackup,uid=1000,gid=100,workgroup=xxxxxxxxxx
   
   
   % dfh
   Filesystem        Size  Used Avail Use% Mounted on
   dev                3.9G    0  3.9G  0% /dev
   run                3.9G  920K  3.9G  1% /run
   /dev/sdaX          246G  57G  177G  25% /
   [snip]
   //NAS/backup  1.9T  13G  1.9T  1% /mnt/mynas/mybackup
   
   cd /mnt/mynas/mybackup/test/obnam1
   % l
   total 0
   drwx------ 2 obguy users 0 Apr 10 19:39 .
   drwx------ 4 obguy users 0 Apr