fabric difference sudo() run('sudo cmd')
问题 I'm wondering what is the difference between the function sudo() and the function run('sudo -u user smth') On the doc there is : sudo is identical in every way to run, except that it will always wrap the given command in a call to the sudo program to provide superuser privileges. But a few time, sudo('cmd') prompt me a password, but if I switch with run('sudo cmd') it works without prompting me anything. Is there anything that change between the two ? (I remember someone on SO saying that