Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a primary server and a secondary server and I wish to copy files over from the primary to the secondary using rsync. I have mounted the primary disk onto the secondary using NFS and am copying data pertaining to multiple users at the primary server onto the secondary.

Is there any way I can do this without root privileges?

share|improve this question
add comment

1 Answer

If you want it to keep the user permissions for multiple users you need to run it as root. Even if the files are all readable a regular user account won't be able to set the owner properly.

share|improve this answer
    
Would there be an alternative if I did not want to keep the user permissions? –  eQuiNoX__ Feb 13 '13 at 7:31
    
If the files are all readable by the user you want to run rsync with, yes. You may need to use the --fake-super or --no-super arguments to rsync. –  Grant Feb 13 '13 at 12:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.