Emiliano Vazquez
2018-06-15 13:19:12 UTC
Hi guys. I'm stuck on this.
I have some debian boxes without sudo and only my user working.
Today i do this:
1. Login to box as "myuser"
2. *$su *-
3. Ask for the root password (diferent from myuser password)
4. I got root => *#*
I can't make it work with fabric.
sudo('sh /tmp/myscript.sh') did not work
I read about using expect but i don't know if this is the "python way" to
do this.
Any hint will be apreciatted
Emiliano
I have some debian boxes without sudo and only my user working.
Today i do this:
1. Login to box as "myuser"
2. *$su *-
3. Ask for the root password (diferent from myuser password)
4. I got root => *#*
I can't make it work with fabric.
sudo('sh /tmp/myscript.sh') did not work
I read about using expect but i don't know if this is the "python way" to
do this.
Any hint will be apreciatted
Emiliano