Thanks a lot Mike, this helped a lot!
On Oct 31, 8:51 am, Mike Bailey <
m...@bailey.net.au> wrote:
> The following error appears when Capistrano attempts to use sudo with a
> password on Ubuntu 9.10 "Karmic Koala":
>
> sudo: no tty present and no askpass program specified
>
> This can be solved by setting the following variable:
>
> default_run_options[:pty] = true
>
> You can do this in your ~/.caprc file, /etc/capistrano.conf, ./Capfile, or
> deploy.rb
>
>
http://weblog.jamisbuck.org/2007/10/14/capistrano-2-1
>
> Thanks to Lee for pointing this out
>
> - Mike
>
> On Sun, Nov 1, 2009 at 12:21 AM, Lee Hambley <
lee.hamb...@gmail.com> wrote:
> > Nothing changed Mike, but passworded sudo access isn't supported
> > officially, because it's so damned difficult to get right across multiple
> > platforms.
>
> > -- Lee Hambley
>
> > Twitter: @leehambley | @capistranorb
> > Blog:
http://lee.hambley.name/
> > Working with Rails:
http://is.gd/1s5W1
>
> > 2009/10/31 Mike Bailey <
m...@bailey.net.au>
>
> > sudo is necessary in some circumstances (such as creating a user or
> >> installing a package)
>
> >> I've been having a look into this and found that the password prompt for
> >> sudo doesn't seem to be working on a host I've been using since 2006.
>
> >> maculike:~ mbailey$ cap test_sudo HOSTS=sh01
> >> triggering load callbacks
> >> * executing `deprec:connect_canonical_tasks'
> >> * executing `test_sudo'
> >> * executing "sudo hostname"
> >> servers: ["sh01"]
> >> [sh01] executing command
> >> *** [err :: sh01] Password:
> >> my_password
>
> >> Has something changed in Capistrano that broke entering my sudo password?
> >> I'm using capistrano-2.5.9
>
> >> - Mike
>