title: Capistrano deploy how to use use_sudo and admin_runner
body: <p>I'm trying to configure Capistrano so that it works for our server setup. We are deploying symfony projects so i'm also using capifony. I'm still experiencing some problems with permissions.</p>
  
  <p>On our server every project runs as a project user, so every project has it's own user. So i configured use_sudo and set it to true and i configured the admin_runner to be the user of the project. But it still didn't work so i modified the capifony to start using try_sudo in stead of the regular run. Which made it work a little bit better. But i'm a bit confused about what to use in which case. You have try_sudo, sudo and run. But which is needed for which use-case?</p>
  
  <ul>
  <li>When you use <strong>run</strong> i think it'll always be your local user</li>
  <li><strong>try_sudo</strong> i think will check if the use_sudo flag is true if so it will use the sudo command if not it will use the local user. If you have admin_runner configured it will sudo to the user configured as admin_runner</li>
  <li><strong>sudo</strong> will always try to sudo</li>
  </ul>
  
  <p>Now my problem is the deploy:symlink method this is also just a regular run command so it executes as the local user, which gives permission problems when i try to view the website.</p>
  
  <p>So can anyone tell me if my description of the 3 commands is correct? and also does anyone know how the admin_runner and use_sudo is suposed to be used, so that the symlink is also being done correctly (and also all other commands done by capistrano)?</p>
  
  <p>kind regards,</p>
  
  <p>Daan</p>