Rsync with ACL not working inside a Jail
Hey, I am trying to sync two NAS Servers bidirectional using osync (based on rsync). Since I cannot or shall not install stuff to the truenas OS itself, I am trying to do everything in a jail.
Sadly I didn't get it running yet and after some testing around I figured out that rsync does work as expected when I execute it in shell (not inside jail!). However when I run the same command in jail it fails.
Furthermore I realized that I can get it running in jail IF I do not use -A flag in my rsync command which preserves the ACLs. But preserving ACL's is important since multiple users and devices receive specific permissions on the synced directories which are also available via shares.
Relevant directories are mounted to the jail and jail has full permissions. Inside and outside of the jail I can connect to the other server without issues. The rsync error message is just a typical useless one that doesn't really tell me what is wrong.
Maybe anyone has an idea why it behaves different inside the jail or what I can do to figure out what is wrong and how to fix it?
This is the successful sync from main shell (not inside jail):
Now the same thing inside the jail:
Without -A parameter it suceeds in jail...:
ACLs are also printed above including the groups of the executing users (I created the same groups/users in jail with same gids/uids). Please let me know if any further information are needed here.
Thanks in advance for any help!
Hey, I am trying to sync two NAS Servers bidirectional using osync (based on rsync). Since I cannot or shall not install stuff to the truenas OS itself, I am trying to do everything in a jail.
Sadly I didn't get it running yet and after some testing around I figured out that rsync does work as expected when I execute it in shell (not inside jail!). However when I run the same command in jail it fails.
Furthermore I realized that I can get it running in jail IF I do not use -A flag in my rsync command which preserves the ACLs. But preserving ACL's is important since multiple users and devices receive specific permissions on the synced directories which are also available via shares.
Relevant directories are mounted to the jail and jail has full permissions. Inside and outside of the jail I can connect to the other server without issues. The rsync error message is just a typical useless one that doesn't really tell me what is wrong.
Maybe anyone has an idea why it behaves different inside the jail or what I can do to figure out what is wrong and how to fix it?
This is the successful sync from main shell (not inside jail):
Now the same thing inside the jail:
Without -A parameter it suceeds in jail...:
ACLs are also printed above including the groups of the executing users (I created the same groups/users in jail with same gids/uids). Please let me know if any further information are needed here.
Thanks in advance for any help!