I've used the options you suggested but am still not getting the right results... here's what I get now when transferring a directory and file with your suggestion:
Code:
dr-xr-xrwx 2 mysite mysite 4096 Jan 4 18:01 .
-r-xr-xrwx 1 mysite mysite 14 Jan 4 17:58 test_file.html
We aren't doing anything special with the files on the Windows side... they are the 'stock' permissions you get when a regular user creates files (windows permissions make my head spin anyway).
Here's some more information if it can help any kind souls see what the problem is...
Here are what I want as permissions when I rsync files to Linux (755 for dirs and 644 for files):
Code:
drwxr-xr-x 2 mysite mysite 4096 Jan 4 18:06 .
-rw-r--r-- 1 mysite mysite 5 Jan 4 18:06 test.file
On the linux side, when logged in as the user, when I create a directory and file manually I get these permissions instead:
Code:
drwxrwxr-x 2 mysite mysite 4096 Jan 4 17:58 .
-rw-rw-r-- 1 mysite mysite 10 Jan 4 17:58 test.txt
That's just for reference - as far as I know that's not behaving as the default should be for a linux environ.
When I rsync files over, without setting any permissions options, I get these permissions (same rsync command as op):
Code:
drwxr-xr-x 2 mysite mysite 4096 Jan 4 18:01 .
-r-xr-xr-x 1 mysite mysite 14 Jan 4 17:58 test_file.html
Setting --chmod in my rsync command sets both my directories and files to the same permissions, which is definitely not what I want.
I know this can be solved by changing the umask or something along those lines... apparently I'm not doing it correctly or something, I spent a couple hours last night googling and working on it but with no helpful results. See my op. Does anybody know what I'm missing?
Many thanks - Mike