Try providing the password to each sudo call