I\'m trying to do an uncomplicated Rails/Capistrano deployment to a remote server. Unfortunately I can\'t get sudo to run correctly out of the box. I need to
sudo
Is your user that you're trying to use added to the sudoers cfg on the server? Try this
run "#{sudo :as => 'bob'} mkdir /path/to/dir"
source