title: Capistrano using sudo even with "set :use_sudo, false"
body: <p>I do not wish to use sudo for any of my remotely executed commands via Capistrano. Specifically, when I run <code>cap deploy:setup</code>, I'm asked for my sudo password during the first <code>mkdir</code> command. I added <code>set :use_sudo, false</code> to my deploy.rb file, but this did not make a difference.</p>
  
  <p>I started with a fairly complete deploy.rb file, but whittled it down once I started having issues. Here is my minimal version that still shows <code>use_sudo</code> not being respected:</p>
  
  <pre><code># App Definitions
  
  set :domain, '[server-ip]'
  role :app, domain
  role :web, domain
  role :db, domain, :primary =&gt; true
  
  set :user, "my_app"
  set :use_sudo, false
  
  task :sudo_test do
    run "#{try_sudo} whoami"
  end
  </code></pre>
  
  <p>running <code>cap sudo_test</code> results in me being prompted for my sudo password.  What am I missing here (besides the hair I've already pulled out)?</p>
  
  <p><strong>Google Findings</strong></p>
  
  <p><a href="https://groups.google.com/forum/?fromgroups#!topic/capistrano/QNYnvW8obrg">https://groups.google.com/forum/?fromgroups#!topic/capistrano/QNYnvW8obrg</a></p>
  
  <p>A thread with someone having a similar issue. No conclusion/resolution noted in the thread.</p>