title: Vagrant::Butcher "sudo: no tty present and no askpass program specified" when trying to "cat /etc/chef/client.pem"
body: <p>Ubuntu 10.04.1 LTS with Vagrant 1.4.3 and Vagrant::Butcher 2.1.5.</p>
  
  <p>I get the following error at the end of "vagrant up":</p>
  
  <pre><code>...
  [2014-03-17T22:50:56+00:00] INFO: Chef Run complete in 245.448117502 seconds
  [2014-03-17T22:50:56+00:00] INFO: Running report handlers
  [2014-03-17T22:50:56+00:00] INFO: Report handlers complete
  
  [Butcher] Creating /home/testuser/vagrant_test/.vagrant/butcher
  [Butcher] Failed to create /home/testuser/vagrant_test/.vagrant/butcher/DEV-35-51-client.pem: Vagrant::Errors::VagrantError - The following SSH command responded with a non-zero exit status.
  Vagrant assumes that this means the command failed!
  
  cat /etc/chef/client.pem
  
  Stdout from the command:
  
  
  
  Stderr from the command:
  
  sudo: no tty present and no askpass program specified
  Sorry, try again.
  sudo: no tty present and no askpass program specified
  Sorry, try again.
  sudo: no tty present and no askpass program specified
  Sorry, try again.
  sudo: 3 incorrect password attempts
  </code></pre>
  
  <p>The Chef client runs successfully, and our cookbooks are all installed.  One of them is the <em>sudo</em> community cookbook, and I'm thinking we blew away an entry that the <em>vagrant</em> user needs to execute <em>cat</em> to read the client.pem file.  </p>
  
  <p>Can anyone tell me what that might be?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>1) The vagrant user is part of the "sudo" group:</p>
  
  <pre><code>$ grep sudo /etc/group
  sudo:x:27:vagrant
  </code></pre>
  
  <p>2) The sudoers file contains an entry to let the "sudo" group run any command:</p>
  
  <pre><code># This file is managed by Chef.
  # Do NOT modify this file directly.
  
  Defaults      env_reset
  Defaults      secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  
  # User privilege specification
  root      ALL=(ALL:ALL) ALL
  nagios    ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/
  
  
  # Members of the group 'admin' may gain root privileges
  %admin ALL=(ALL) ALL
  
  # Allow members of group sudo to execute any command
  %sudo     ALL=(ALL:ALL) ALL
  
  #includedir /etc/sudoers.d
  </code></pre>