title: capistrano deployment with use_sudo=true - permissions problem
body: <p>i am trying to do a deployment with capistrano to newly installed Ubuntu server</p>
  
  <p>i am deploying to directory /var/www, owned by root, so i need to set use_sudo to true</p>
  
  <p>while i execute commands with run "#{try_sudo} command" without problem, svn checkout doesn't work with sudo prefix</p>
  
  <p>i try</p>
  
  <pre><code>set :deploy_via, :export
  </code></pre>
  
  <p>and it throws</p>
  
  <pre><code>Can't make directory '/var/www/pr_name/releases/20091217171253': Permission denied
  </code></pre>
  
  <p>during checkout</p>
  
  <p>i imagine adding "try_sudo" prefix to "svn export" would help, but where can i edit the one it uses in deploy_via?</p>
  
  <p>--</p>
  
  <p>if on other hand i don't use use_sudo, and set /var/www/ directory ownership to myuser, i still cannot deploy - some of my deployment commands set folders ownership to apache user www-data and then i get something like:</p>
  
  <pre><code>changing ownership of `/var/www/pr_name/current/specificdirectory': Operation not permitted
  </code></pre>
  
  <p>which, if i understand correctly, has to be done with sudo</p>