execute commands as su on remote server

Antoon Pardon antoon.pardon at rece.vub.ac.be
Wed Sep 2 09:05:30 CEST 2015


Op 18-08-15 om 04:57 schreef harirammanohar159 at gmail.com:
> 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.

What about pexpect: https://pypi.python.org/pypi/pexpect/

It's been a long time since I used it, but it was for something
similar.

-- 
Antoon Pardon



More information about the Python-list mailing list