0

I am trying to move many thousands of files to a Synology NAS.

Thanks to excellent posts here and superuser, I have been using rsync a lot. But in this case, I'm getting a very high failure rate due to years of permissions problems across the board.

Any ideas on how I can get all these files copied, either by straightening out the permissions issues, or bypassing them? Once on the NAS, the permissions won't matter.

5
  • Which specific error messages are you getting? If it really are just read permission issues, chmod/chown (or using sudo rsync ...) should suffice.
    – nohillside
    Commented Sep 25, 2015 at 20:14
  • Hi I definitely use "sudo" each time. So for example I'll see "rsync: opendir (location) failed: Permission denied 13 Many users in this network have various permissions issues, locked out of certain files and folders, while others can access, and so I'm presuming this is the same mess.
    – AtariBaby
    Commented Sep 26, 2015 at 1:14
  • Can you spell out what chmod/chown command I could use on the entire massive directory without messing up anything?
    – AtariBaby
    Commented Sep 26, 2015 at 1:17
  • Hold the phone! User error? I may have forgotten to use sudo headsmack Thank you for the clarity.
    – AtariBaby
    Commented Sep 26, 2015 at 1:53
  • There were a small batch of files that didn't copy by rsync due to permissions problems. This actually required me to drag and drop them, which gave me a prompt to enter the administrator credentials due to permissions. And for sure I was using sudo
    – AtariBaby
    Commented Sep 28, 2015 at 22:17

1 Answer 1

1

Assuming these are read permission issues you should be able to overcome them by running

sudo rsync …

If you don't need the various read permissions on the original files, you can also use

sudo chown -R $USER source/dir 

first to change file ownership to yourself.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .