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.

When restoring files (using rsync over cygwin) from Linux to Microsoft Windows XP (and probably to all version of windows), each file restored has permissions so strict, that only the "SYSTEM" account may access these restored files.

I know how to change the permissions, but I'm looking for a solution that makes rsync-restored files inherit permissions of the parent folder to which the files are sync/restored. Or, simply modifies the files without changing their current permissions on the windows machine. Or something similar that ultimately restores the files in a manner in which I don't have to manually adjust permissions after each restore / sync.

share|improve this question

migrated from stackoverflow.com Feb 22 '10 at 22:46

This question came from our site for professional and enthusiast programmers.

2  
I think this would be better-suited on Server Fault... –  Skilldrick Feb 22 '10 at 22:23
add comment

1 Answer

up vote 2 down vote accepted

If you have the rsynch process run under the "administrator" user it will normally be ok. I Use delta copy under windows and set the deltacopy service to run as administrator also granting the administrator run as a service rights.

This solves the issue that you are facing.

share|improve this answer
    
Well, I'm actually doing this from a windows client-side service, using c#'s System.Diagnostics.Process object. The windows service is logged in as an administrator, but that alone isn't solving the problem. –  LonnieBest Feb 23 '10 at 0:21
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.