I found the problem. Capistrano is expecting the prompt to be exactly
"Password: ", but the sudo that comes with SuSE Linux Enterprise
Server is nice and actually tells you what password it expects by
prefixing it with the username (e.g., "root's password:" or
"youruser's password:" ). Here's the patch to actor.rb that fixes it
for SLES:

325c325
<         if out =~ /^Password:/
---
>         if out =~ /[Pp]assword:/

--Steven

On Apr 4, 2:55 pm, "Steven Wisener" <[EMAIL PROTECTED]> wrote:
> I'm having problems with Capistrano and the sudo command. It looks
> like Capistrano is not forwarding on the password when prompted.
> Here's the command:
>
> sudo <<-CMD
>     if [ ! -d #{src_home} ]
>     then
>         mkdir -p #{src_home}
>     fi
> CMD
>
> Here's the output:
>
>   * executing "sudo        if [ ! -d /usr/local/packages ]\n      then
> \n          mkdir -p /usr/local/packages\n      fi"
>     servers: ["someserver"]
> Password:
>     [someserver] executing command
>  ** [out :: someserver] someuser's password:
>
> The command looks correct, but it's sending the password prompt
> instead of sending my password. The only notable thing is that after I
> enter the password at the prompt, it thinks about it for 5-10 seconds
> before the "executing command" line prints. Any idea what's going on?
> Does cap only wait for so long when expecting the password prompt?
>
> --Steven


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to