Re: [capistrano] Re: SUDO Problem
This did it for me.. Now I can deploy! Thank you On Saturday, October 31, 2009 9:51:24 AM UTC-4, Mike Bailey 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.h...@gmail.comjavascript: 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 mi...@bailey.net.au javascript: 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 On Sat, Oct 31, 2009 at 9:31 PM, Lee Hambley lee.h...@gmail.comjavascript: wrote: No Mike, but I'd love to know, if you come across any evidence, I'd really appreciated if you shared it on here; we've been saying for a long time that using sudo during deployment encourages insecure/unsafe setups (and of course, means that we're making assumptions that don't apply to a /lot/ of people on shared hosting.. so this may yet change) -- Lee Hambley Twitter: @leehambley | @capistranorb -- -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups Capistrano group. To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[capistrano] Re: SUDO Problem
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 On Sat, Oct 31, 2009 at 9:31 PM, Lee Hambley lee.hamb...@gmail.comwrote: No Mike, but I'd love to know, if you come across any evidence, I'd really appreciated if you shared it on here; we've been saying for a long time that using sudo during deployment encourages insecure/unsafe setups (and of course, means that we're making assumptions that don't apply to a /lot/ of people on shared hosting.. so this may yet change) -- Lee Hambley Twitter: @leehambley | @capistranorb -- * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
[capistrano] Re: SUDO Problem
I just bit by the same problem connecting to Ubuntu 9.10 (Karmic Koala). I think this is going to affect all Capistrano users who use sudo in recipes. Capistrano supports sudo with passwords and ubuntu has always granted a pty when you ssh to it. Any idea what may have changed in last weeks release of Ubuntu? - Mike On Oct 31, 10:09 am, Lee Hambley lee.hamb...@gmail.com wrote: You do not have a tty (you are therefore using a pty) -- and you do not have passwordless sudo access configured. You can alter capistrano's configuration to use the other (a tty, or a pty, whichever your configuration requires) -- Lee Hambley Twitter: @leehambley | @capistranorb --~--~-~--~~~---~--~~ * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en -~--~~~~--~~--~--~---
[capistrano] Re: SUDO Problem
No Mike, but I'd love to know, if you come across any evidence, I'd really appreciated if you shared it on here; we've been saying for a long time that using sudo during deployment encourages insecure/unsafe setups (and of course, means that we're making assumptions that don't apply to a /lot/ of people on shared hosting.. so this may yet change) -- Lee Hambley Twitter: @leehambley | @capistranorb --~--~-~--~~~---~--~~ * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en -~--~~~~--~~--~--~---
[capistrano] Re: SUDO Problem
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 On Sat, Oct 31, 2009 at 9:31 PM, Lee Hambley lee.hamb...@gmail.com wrote: No Mike, but I'd love to know, if you come across any evidence, I'd really appreciated if you shared it on here; we've been saying for a long time that using sudo during deployment encourages insecure/unsafe setups (and of course, means that we're making assumptions that don't apply to a /lot/ of people on shared hosting.. so this may yet change) -- Lee Hambley Twitter: @leehambley | @capistranorb --~--~-~--~~~---~--~~ * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en -~--~~~~--~~--~--~---
[capistrano] Re: SUDO Problem
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 On Sat, Oct 31, 2009 at 9:31 PM, Lee Hambley lee.hamb...@gmail.comwrote: No Mike, but I'd love to know, if you come across any evidence, I'd really appreciated if you shared it on here; we've been saying for a long time that using sudo during deployment encourages insecure/unsafe setups (and of course, means that we're making assumptions that don't apply to a /lot/ of people on shared hosting.. so this may yet change) -- Lee Hambley Twitter: @leehambley | @capistranorb --~--~-~--~~~---~--~~ * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en -~--~~~~--~~--~--~---
[capistrano] Re: SUDO Problem
You do not have a tty (you are therefore using a pty) -- and you do not have passwordless sudo access configured. You can alter capistrano's configuration to use the other (a tty, or a pty, whichever your configuration requires) -- Lee Hambley Twitter: @leehambley | @capistranorb --~--~-~--~~~---~--~~ * You received this message because you are subscribed to the Google Groups Capistrano group. * To post to this group, send email to capistrano@googlegroups.com * To unsubscribe from this group, send email to capistrano+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/capistrano?hl=en -~--~~~~--~~--~--~---