execute commands as su on remote server
Laura Creighton
lac at openend.se
Wed Aug 19 04:51:56 EDT 2015
In a message of Wed, 19 Aug 2015 10:44:53 +0200, Laura Creighton writes:
>I haven't tried this but fabric looks encouraging:
>
>>From http://docs.fabfile.org/en/latest/api/core/operations.html#fabric.operations.run
>
> fabric.operations.run(*args, **kwargs)
>
> Run a shell command on a remote host.
>
> ...
>
> Any text entered in your local terminal will be forwarded to the
> remote program as it runs, thus allowing you to interact with
> password or other prompts naturally
>
> ...
>
> You may pass pty=False to forego creation of a pseudo-terminal on
> the remote end in case the presence of one causes problems for the
> command in question.
>
>Laura
>--
>https://mail.python.org/mailman/listinfo/python-list
And now that I started looking, I found this:
http://stackoverflow.com/questions/12641514/switch-to-different-user-using-fabric
so, somebody got it to work ...
Laura
More information about the Python-list
mailing list