title: rsync permissions question -- destination perms not properly applying
body: <p>This is what I'm trying to do:</p>
  
  <pre><code>rsync -rvl --chmod=ug=rwX,o=rX test /var/www
  </code></pre>
  
  <p>and after I do it, here are the results I get:</p>
  
  <pre><code>drwxr-xr-x
  </code></pre>
  
  <p>(Actually it's drwxr-sr-x, but that's probably not important ... is it?)</p>
  
  <p>This, obviously is not what I want. I want the group to have write permissions, but for some reason, the rsync command isn't setting them.</p>
  
  <p>Anyone have any ideas why not? Is there a mistake in my syntax? If it's helpful I'm transferring from OSX to Linux (Debian).</p>
  
  <p><strong>Update:</strong>
  Also, if it's helpful, when I enter umask, I get 0002. So that's not the problem.</p>