Re: Tentakel and exec sudo ...

2009-02-10 Thread Falk Brockerhoff - smartTERRA GmbH

Am 08.02.2009 um 16:18 schrieb Todd C. Miller:


Do you know whether tentakel is running ssh with the -t flag or
not?


I think tentakel's running without this flag. In the file /etc/ 
tentakel.conf I can see:


# first section: global parameters
set ssh_path=/usr/bin/ssh

Adding a  -t at the end doesn't matter :-/


- todd


Regards,

Falk



Tentakel and exec sudo ...

2009-02-08 Thread Falk Brockerhoff - smartTERRA GmbH

Hi there,

is there any way to execute sudo (in combination with a password to  
provide) on remote servers using tentakel? Actualy tentakel hangs,  
when I'm executing sudo ls -l / on a bunch of servers. Without sudo  
anything works fine, as you can see from the example below.


[f...@management] [~]$ tentakel -g mail
interactive mode
tentakel(mail) exec uptime
### mail.mx0(0):
 13:52:59 up 31 days,  3:19,  1 user,  load average: 0.00, 0.00, 0.00
### mail.mx1(0):
 13:53:01 up 31 days, 15:06,  0 users,  load average: 0.00, 0.00, 0.00
### mail.mx2(0):
 13:53:01 up 29 days, 18:28,  0 users,  load average: 0.00, 0.00, 0.00
### mail.mail0(0):
 14:52:59 up 14 days, 16:56,  0 users,  load average: 0.00, 0.00, 0.00
### mail.mail1(0):
 13:56:24 up 14 days, 16:46,  0 users,  load average: 0.00, 0.00, 0.00
### mail.spam0(0):
 13:53:01 up 30 days, 15:51,  0 users,  load average: 0.00, 0.00, 0.00
### mail.spam1(0):
 13:53:01 up 30 days, 15:52,  0 users,  load average: 0.00, 0.00, 0.00
### mail.spam2(0):
 13:53:01 up 29 days, 18:28,  0 users,  load average: 0.00, 0.00, 0.00
### mail.mailout0(0):
 13:53:01 up 30 days, 4 min,  0 users,  load average: 0.00, 0.00, 0.00
### mail.mailout1(0):
 13:53:01 up 29 days, 23:56,  0 users,  load average: 0.00, 0.00, 0.00

tentakel(mail) exec sudo uptime

Regards,

Falk



Re: Tentakel and exec sudo ...

2009-02-08 Thread Todd C. Miller
In message c4bb3a29-8051-4d34-a691-53d4f035d...@smartterra.eu
so spake Falk Brockerhoff - smartTERRA GmbH (nmc):

 is there any way to execute sudo (in combination with a password to  
 provide) on remote servers using tentakel? Actualy tentakel hangs,  
 when I'm executing sudo ls -l / on a bunch of servers. Without sudo  
 anything works fine, as you can see from the example below.

Do you know whether tentakel is running ssh with the -t flag or
not?  Sudo will want to disable echo when reading the password so
ssh needs the -t flag so that it allocates a pty.

 - todd