Path: csiph.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'password)': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'url:github': 0.09; 'python': 0.10; '2.7': 0.13; '3.3,': 0.16; '>on': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'doesnt': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'googled': 0.16; 'message-id:@fido.openend.se': 0.16; 'ported': 0.16; 'real.': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'subject:server': 0.16; 'sudo': 0.16; 'tried:': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'working.': 0.18; 'python?': 0.18; 'tests': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'work,': 0.21; 'cc:2**1': 0.22; "aren't": 0.22; 'disabled': 0.22; 'sep': 0.22; 'tried': 0.24; "doesn't": 0.26; '-0700,': 0.29; 'fork': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'url:mailman': 0.30; 'reported': 0.32; 'maybe': 0.33; 'url:python': 0.33; 'url:listinfo': 0.34; 'tue,': 0.34; 'server': 0.34; 'gets': 0.35; 'i.e.': 0.35; 'possible,': 0.35; 'asking': 0.35; 'remote': 0.35; 'but': 0.36; 'too': 0.36; 'url:org': 0.36; 'possible': 0.36; 'subject:: ': 0.37; 'things': 0.38; 'doing': 0.38; 'enough': 0.39; 'url:mail': 0.40; 'some': 0.40; 'entire': 0.61; 'header:Message- Id:1': 0.61; 'email addr:gmail.com': 0.62; 'complete': 0.63; 'here': 0.66; 'august': 0.75; 'miss': 0.77; 'header:In-reply- to:1': 0.84; 'needed:': 0.84; 'subject:commands': 0.84; 'utc+5:30,': 0.84 To: harirammanohar159@gmail.com cc: python-list@python.org, lac@openend.se From: Laura Creighton Subject: Re: execute commands as su on remote server In-reply-to: <23e7c934-e8f1-4c8f-a44a-fcbb390381b4@googlegroups.com> References: <23e7c934-e8f1-4c8f-a44a-fcbb390381b4@googlegroups.com> Comments: In-reply-to harirammanohar159@gmail.com message dated "Tue, 01 Sep 2015 05:16:48 -0700." MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <19321.1441113942.1@fido> Content-Transfer-Encoding: quoted-printable Date: Tue, 01 Sep 2015 15:25:42 +0200 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Tue, 01 Sep 2015 15:25:44 +0200 (CEST) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441113955 news.xs4all.nl 23742 [2001:888:2000:d::a6]:57484 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95830 In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar159@gmail.c= om wr ites: >On Tuesday, 18 August 2015 08:27:33 UTC+5:30, hariramm...@gmail.com wrot= e: >> execute commands as su on remote server >> = >> Postby hariram =C2=BB Mon Aug 17, 2015 4:02 am >> Needed: >> I need to execute commands after doing su to other user on remote serve= r(not sudo which doesn't require password) how i can achieve this using py= thon? >> I googled and came to know that its not possible, so just for confirmat= ion 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