Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95830

Re: execute commands as su on remote server

From Laura Creighton <lac@openend.se>
Subject Re: execute commands as su on remote server
References <a6b3da0b-d9be-4241-8577-85aafca72440@googlegroups.com> <23e7c934-e8f1-4c8f-a44a-fcbb390381b4@googlegroups.com>
Date 2015-09-01 15:25 +0200
Newsgroups comp.lang.python
Message-ID <mailman.44.1441113955.23514.python-list@python.org> (permalink)

Show all headers | View raw


In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar159@gmail.com wr
ites:
>On Tuesday, 18 August 2015 08:27:33 UTC+5:30, hariramm...@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-17 19:57 -0700
  Re: execute commands as su on remote server Chris Angelico <rosuav@gmail.com> - 2015-08-18 13:06 +1000
  Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-18 23:58 -0700
  Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-08-19 00:02 -0700
    Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-08-19 10:44 +0200
    Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-08-19 10:51 +0200
  Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-09-01 05:16 -0700
    Re: execute commands as su on remote server Laura Creighton <lac@openend.se> - 2015-09-01 15:25 +0200
  Re: execute commands as su on remote server Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2015-09-02 09:05 +0200
  Re: execute commands as su on remote server harirammanohar159@gmail.com - 2015-10-01 00:10 -0700

csiph-web