esamett
Patron
- Joined
- May 28, 2011
- Messages
- 345
I am following the threads on Windows ACL problems and awaiting Cyberjock's monograph on permissions. After apparently fixing permissions and am able to use Windows to move FreeNAS files. I am having trouble getting rsync to work from FreeNAS command line. I hope this issue is sufficiently focused and unique to warrant posting.
I started with volume/vdev with default Windows ACL owned by guest/guest. Guest has Wheel as auxillary group in case guest was restricted. I got a simple folder without subdirectories to rsync by giving full_set permissions to everyone@:
Setfacl failed to set subfolder permissions: http://forums.freenas.org/index.php?threads/setfacl-recursive-quick-and-dirty-how.16146/
Using the commands in thread 16146 I got permissions for owner/group/everyone wide open. However, even with full_set permissions for owner/group/everyone rsync fails to copy my files:
[root@freenas ~]# getfacl /mnt/video/video-server/asus/gail
# file: /mnt/video/video-server/asus/gail
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:rwxpDdaARWcCos:fd----:allow
[root@freenas ~]# rsync -a /mnt/video/video-server/asus/gail/ /mnt/tank1/test
rsync: mkstemp "/mnt/tank1/test/.Picture list.doc.xg3CuE" failed: Operation not
permitted (1)
rsync: mkstemp "/mnt/tank1/test/.ameliaspeech.doc.4D8WNj" failed: Operation not
permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1053) [sender=3.0.9]
Change Permissions
ShellI verified that a file also had full_permissions for everyone:
I started with volume/vdev with default Windows ACL owned by guest/guest. Guest has Wheel as auxillary group in case guest was restricted. I got a simple folder without subdirectories to rsync by giving full_set permissions to everyone@:
[root@freenas ~]# setfacl -m everyone@:full_set:fd:allow /mnt/video/video-server
/O
[root@freenas ~]# getfacl /mnt/video/video-server/O
# file: /mnt/video/video-server/O
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:rwxpDdaARWcCos:fd----:all
root@freenas ~]# rsync -av /mnt/video/video-server/O/ /mnt/tank1/test
sending incremental file list
sent 470 bytes received 42 bytes 1024.00 bytes/sec
total size is 187145510 speedup is 365518.57
[root@freenas ~]#
I don't know why everyone@ has ":all" instead of ":allow" or what the difference is./O
[root@freenas ~]# getfacl /mnt/video/video-server/O
# file: /mnt/video/video-server/O
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:rwxpDdaARWcCos:fd----:all
root@freenas ~]# rsync -av /mnt/video/video-server/O/ /mnt/tank1/test
sending incremental file list
sent 470 bytes received 42 bytes 1024.00 bytes/sec
total size is 187145510 speedup is 365518.57
[root@freenas ~]#
Setfacl failed to set subfolder permissions: http://forums.freenas.org/index.php?threads/setfacl-recursive-quick-and-dirty-how.16146/
Using the commands in thread 16146 I got permissions for owner/group/everyone wide open. However, even with full_set permissions for owner/group/everyone rsync fails to copy my files:
[root@freenas ~]# getfacl /mnt/video/video-server/asus/gail
# file: /mnt/video/video-server/asus/gail
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:fd----:allow
group@:rwxpDdaARWcCos:fd----:allow
everyone@:rwxpDdaARWcCos:fd----:allow
[root@freenas ~]# rsync -a /mnt/video/video-server/asus/gail/ /mnt/tank1/test
rsync: mkstemp "/mnt/tank1/test/.Picture list.doc.xg3CuE" failed: Operation not
permitted (1)
rsync: mkstemp "/mnt/tank1/test/.ameliaspeech.doc.4D8WNj" failed: Operation not
permitted (1)
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1053) [sender=3.0.9]
Change Permissions
Shell
[root@freenas ~]# getfacl /mnt/video/video-server/asus/gail/ameliaspeech.doc
# file: /mnt/video/video-server/asus/gail/ameliaspeech.doc
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:------:allow
group@:rwxpDdaARWcCos:------:allow
everyone@:rwxpDdaARWcCos:------:allow
[root@freenas ~]#
# file: /mnt/video/video-server/asus/gail/ameliaspeech.doc
# owner: guest
# group: guest
owner@:rwxpDdaARWcCos:------:allow
group@:rwxpDdaARWcCos:------:allow
everyone@:rwxpDdaARWcCos:------:allow
[root@freenas ~]#