Switching user in a SSH connection

Tino Wildenhain tino at wildenhain.de
Fri Jan 2 10:22:18 CET 2009

Shah Sultan Alam wrote:
> Hi Group,
>  I am trying to connect to a Linux maching using paramiko.
>  and able to run a command like "ls -l"
>  Now I want to switch user being in the connection ( eg running
> something like "su -" )
> Will you please let me know how to do that.

You would for example run su - in that connection? Or sudo if
installed and configured.

What else would you need?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3241 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090102/f1406e5f/attachment.bin>

More information about the Python-list mailing list