Re: execute commands as su on remote server

2015-10-01 Thread harirammanohar159
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'

Re: execute commands as su on remote server

2015-09-02 Thread Antoon Pardon
Op 18-08-15 om 04:57 schreef harirammanohar...@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)

Re: execute commands as su on remote server

2015-09-01 Thread Laura Creighton
In a message of Tue, 01 Sep 2015 05:16:48 -0700, harirammanohar...@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: &g

Re: execute commands as su on remote server

2015-09-01 Thread harirammanohar159
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'

Re: execute commands as su on remote server

2015-08-19 Thread Laura Creighton
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

Re: execute commands as su on remote server

2015-08-19 Thread Laura Creighton
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

Re: execute commands as su on remote server

2015-08-19 Thread harirammanohar159
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'

Re: execute commands as su on remote server

2015-08-19 Thread harirammanohar159
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'

Re: execute commands as su on remote server

2015-08-18 Thread Julio Oña
Hi, try to use http://www.fabfile.org/ look at: http://docs.fabfile.org/en/latest/api/core/operations.html sudo() call has the posibility to change to another user besides root, with: with settings(sudo_user='mysql'): sudo("whoami") # prints 'mysql' El lun., 17 de ago. de 2015 a la(s) 1

Re: execute commands as su on remote server

2015-08-17 Thread Chris Angelico
On Tue, Aug 18, 2015 at 12:57 PM, wrote: > 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

execute commands as su on remote server

2015-08-17 Thread harirammanohar159
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 possibl