Running your `rsync ...` command without sudo, I then successfully compiled
my code.
Once I finished the above, I saw that you mentioned root user copy the
whole folder, I figured I should re-run the `rsync ...` but with sudo in
front of the command.
However, doing an ls -lrot on my VM shows
so, if the rsync without without the sudo worked, then the user you used is
the oneyou need to setup in the shared folder
do
ls -al /sharedfolder
ls -al /copyrsyncwithoutsudo
ls -al /copyrsyncwithsudo
to check the different permissions.
be clar to highligh the ones what work ( i got copy rsync