cap _2.0.0_ change_password worked. So I figured that if that worked (and assuming you have tested :pty => true), then I must have been doing something stupid. Re-read my script and saw that I put the :pty => true on the task, not the run. :(
Moved it to the run and all is well. So yes, it appears that they must fail without pty attached. Thank you again for your prompt and on target help. -ken On Sep 24, 3:55 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > Hmm! Well, adding :pty => true should have reverted capistrano back to > the 2.0 behavior. If you try withcap2.0, does it work? > > cap_2.0.0_ change_password > > - Jamis > > On 9/24/07, ken brooks <[EMAIL PROTECTED]> wrote: > > > > > Thanks for responding. > > > I tried :pty => true. Same exact result. > > > Here is my output. (Names changed to protect the innocent servers). > > C:\somedir>capchange_password > > * executing `change_password' > > * executing "passwd" > > servers: ["foo.bar.net"] > > Password: > > [foo.bar.net] executing command > > ** Unexpected failure. Password file/table unchanged. > > command finished > > command "passwd" failed on foo.bar.net > > > I'm not sure what to do next to debug this. > > > thanks, > > ken > > > On Sep 15, 10:42 am, "Jamis Buck" <[EMAIL PROTECTED]> wrote: > > > I suspectpasswdon those platforms will fail unless there is a pty > > > attached. Try doing this: > > > > run "passwd", :pty => true > > > > - Jamis > > > > On 9/10/07, ken brooks <[EMAIL PROTECTED]> wrote: > > > > > I have tons of user ids on different machines that I like to keep in > > > > sync. > > > > > I was usingcap2.0to executepasswdon a remote host (solaris as > > > > well as aix). > > > > I would read the data coming back in and send back the appropriate > > > > response. > > > > Everything worked pretty well. > > > > > Since pulling down2.1(Capistrano v2.0.100) I get the following > > > > immediately afterpasswdis sent. > > > > Unexpected failure. Password file/table unchanged. > > > > > I'm pretty sure you changed a few nuts a bolts about the SSH > > > > implementation and the way its creating sessions. > > > > Any thoughts on this? > > > > > -Ken --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
