TechRepublic published a tutorial about showing you how to go passwordless for shell scripts in Linux.
How to go passwordless for shell scripts in Linux
Jack Wallen shows how you can create a Linux shell script that requires a password without having to save a password within the script.
How to go passwordless for shell scripts in Linux