Linux PuTTY - automate su for password related issue

Solution 1:

You can disable password questions by adding a script/program specific line in the /etc/sudoers file: yourusername ALL=(ALL) NOPASSWD: /usr/local/bin/whatever