execute commands as su on remote server

Laura Creighton lac at openend.se
Tue Sep 1 09:25:42 EDT 2015


In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar159 at gmail.com wr
ites:
>On Tuesday, 18 August 2015 08:27:33 UTC+5:30, hariramm... at gmail.com  wrote:
>> execute commands as su on remote server
>> 
>> Postby hariram » Mon Aug 17, 2015 4:02 am
>> Needed:
>> I need to execute commands after doing su to other user on remote server(not sudo which doesn't require password) how i can achieve this using python?
>> I googled and came to know that its not possible, so just for confirmation asking again, is it possible ?
>> 
>> Already Tried:
>> Tried paramiko that's too not working.
>
>Hey Laura,
>
>fabric doesnt work for me as fabric works with only up to python 2.7 and we are using python 3.3, so we may miss major functionalists if we use 2.7 again in the entire project...
>-- 
>https://mail.python.org/mailman/listinfo/python-list

Over here is a Python 3 fork of fabric.
https://github.com/pashinin/fabric

It is not complete -- i.e. he disabled some tests so some things aren't
working.  But most of it is reported to work, so maybe it will work
well enough for you to use until fabric gets ported for real.

Laura



More information about the Python-list mailing list