title: execute commands as user after Vagrant provisioning
body: <p>There are some commands that have to be run as a normal user after the initial provisioning.  I thought I could do this using a separate shell script and the command <code>su --login -c &lt;command&gt; vagrant</code>, but it's not getting the user's path or other environment settings from .bashrc.</p>
  
  <p>e.g.:</p>
  
  <pre><code>#!/usr/bin/env bash
  su --login -c "rbenv install 2.0.0-p353" vagrant
  su --login -c "rbenv global 2.0.0-p353" vagrant
  su --login -c "gem update --system" vagrant
  su --login -c "yes | gem update" vagrant
  su --login -c "gem install rdoc" vagrant
  su --login -c "gem install rails pg" vagrant
  </code></pre>
  
  <p>Is there a way to do this?  Maybe it has to be done with another provisioning tool like Puppet or Chef?  I've thought of creating another shell script that sources the <code>.bashrc</code>, copying it to the box using a :file provisioner and executing the commands like that, but it seems sort of like a hack.</p>
  
  <p>What's the right way to do this?</p>