Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Emiliano Vazquez
On Fri, Jun 15, 2018 at 1:06 PM Jeff Forcier wrote: > If you encounter issues with v2 (it's still very early after release) v1 > does have an 'env.prompts' setting. It's much simpler than v2's watcher > functionality, but it might still get the job done so check it out. > Hi Jeff i'm reading

Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Jeff Forcier
If you encounter issues with v2 (it's still very early after release) v1 does have an 'env.prompts' setting. It's much simpler than v2's watcher functionality, but it might still get the job done so check it out. On Fri, Jun 15, 2018 at 8:14 AM, Emiliano Vazquez wrote: > I think i'm running

Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Emiliano Vazquez
I think i'm running version 1 of fabric. I will install fabric v2 and start again On Fri, Jun 15, 2018 at 12:09 PM Emiliano Vazquez wrote: > I install invoke from pip, then i get this error: > > TypeError: run() got an unexpected keyword argument 'watchers' > > I need to import something

Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Emiliano Vazquez
I install invoke from pip, then i get this error: TypeError: run() got an unexpected keyword argument 'watchers' I need to import something else? best regards i still reading ... On Fri, Jun 15, 2018 at 11:45 AM Emiliano Vazquez wrote: > thanks i will checkout right now! > > > > On Fri,

Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Emiliano Vazquez
thanks i will checkout right now! On Fri, Jun 15, 2018 at 11:39 AM Brandon Whaley wrote: > I think you may be able to use su by setting up a watcher for su's > password prompt and using su -c "command" via run: > > http://docs.pyinvoke.org/en/latest/concepts/watchers.html#autoresponding > >

Re: [Fab-user] Run as root without sudo and root ssh disabled

2018-06-15 Thread Brandon Whaley
I think you may be able to use su by setting up a watcher for su's password prompt and using su -c "command" via run: http://docs.pyinvoke.org/en/latest/concepts/watchers.html#autoresponding responder = Responder( pattern=r"Password: ", response="thisismysecretpassword",