pallet/pallet — Issue #110: :sudo-password fails on Ubuntu 11.10 hosts
Author: thearthur
Created: 2012-02-04 23:50:03+00:00
State: open

(def arthur (pallet.utils/make-user "arthur"
:private-key-path "./id_rsa"
:public-key-path "./id_rsa.pub"
:sudo-password "PASSWORD"
))

java.util.concurrent.ExecutionException: clojure.contrib.condition.Condition: Error executing script :
:cmd ls

:out Last login: Sat Feb 4 15:42:13 2012 from micro1.local
echo "PASSWORD
" | /usr/bin/sudo -S ./sudocmdG9vwb;exit $?;
arthur@macro:~$ echo "PASSWORD
echo "PASSWORD/usr/bin/sudo -n ./sudocmdHzUfy;exit $?;
> " | /usr/bin/sudo -S ./sudocmdG9vwb;exit $?;
[sudo] password for arthur: Sorry, try again.
[sudo] password for arthur: Sorry, try again.
[sudo] password for arthur:
Sorry, try again.
sudo: 3 incorrect password attempts
logout