I have run the command
sudo rsync --chmod=a+rwx testfile testfile2
This creates a file
testfile2 but the permissions on it are
Can someone explain how to make it so the permissions are
Using --chmod=777 with rsync may fail:
However, these are successful:
i.e. add (+) permissions for user (u), group (g) or other (o) respectively.
Also (a)=all is successful:
That --perms can replaced by -p with same results.
Revoking (-) permissions works the same way and even comma separated combinations of adding and revoking: