fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] open_shell as root?


From: Mohamed Lrhazi
Subject: [Fab-user] open_shell as root?
Date: Tue, 26 Apr 2011 09:07:31 -0400

How would you call fabric.operations.open_shell(command=None)
And have it run sudo su - automatically so you get a root shell ?

I tried something like command="sudo su -", which works, but I am
prompted for the password, can that propmt be handled by fabric?
I tried: something like command="sudo -p '%s' su -"%env.sudo_promopt
but that did not seem to help.

Thanks a lot.
Mohamed.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]