fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] sudo getting stuck


From: Jeff Forcier
Subject: Re: [Fab-user] sudo getting stuck
Date: Mon, 13 Oct 2008 15:01:34 -0400

Hi Phil,

As Christian says, this feature isn't in mainline Fabric yet but it is
in my alternative branch (which will become mainline in the nearish
future, I think -- we're still working that out). Some quick
instructions for how to set it up are in a post from the other day:

http://lists.gnu.org/archive/html/fab-user/2008-10/msg00014.html

Best,
Jeff

On Mon, Oct 13, 2008 at 2:57 PM, Christian Vest Hansen
<address@hidden> wrote:
> Since you use ssh-keys to log into th servers, Fabric does not know
> your sudo password and it is not smart enough to recognize a password
> prompt. So you either need to tell it the password by
> set(fab_password="secret") - which can also be done in ~/.fabric - or
> use Jeff's execution branch, which has some logic to handle this
> specific situation. Or you can enable passwordless sudo on the
> servers.
>
> On Mon, Oct 13, 2008 at 8:48 PM, Philip Jacob <address@hidden> wrote:
>> Howdy,
>>
>> I'm new to fabric, but I'm liking it so far.  I'm having some trouble
>> getting sudo() commands to work.  I'm logging into a cluster of machines
>> using my ssh key just fine.  I can run() stuff without any trouble, too.
>>  However, when I try to run sudo("uptime"), fabric hangs.  Here's what I am
>> seeing:
>>
>> [host1.domain] sudo: uptime
>> ^CError: The sudo operation failed on host1.domain:
>>    <lambda>() takes no arguments (2 given)
>> [host1.domain] err: Password:host1.domain
>>
>> The desired behavior is that fabric uses my ssh key for regular run()
>> commands and then asks me for my password when it needs to sudo().  Is this
>> intended to work or am I trying to do something unusual, in your view?
>>
>> phil.
>>
>>
>>
>> _______________________________________________
>> Fab-user mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]