Fixes for permissions assignments when copying resources

- Fixes to permissions assignments
- Further permissions tests for chown/chgrp