I have just installed an application on my Amazon EC2 instance called sshpass. I am having trouble getting it to work properly ( although, it works correctly on a non AWS instance ). I've read in some forums that I may need to run it as the root user for it to work properly.
On an AWS instance, I must run applications with sudo to run them as the root user. When I try to execute sshpass with
sudo sshpass bash outputs 'command not found.'
Where & how do I configure sudo so that I can run sshpass as root using sudo?