in reply to Re^2: Passing Password through Perl Script
in thread Passing Password through Perl Script

You can always configure /etc/sudoers to not require passwords -- either for all commands or for a list of specified commands.
  • Comment on Re^3: Passing Password through Perl Script

Replies are listed 'Best First'.
Re^4: Passing Password through Perl Script
by Amarendu (Initiate) on Aug 09, 2012 at 12:44 UTC
    No, i really need the password , for security reasons. Is there any other alternative way, so that i could do the task.

      Whomever has permission to read, and thus run your script... can read the password embedded in the file.

      If the user has the password anyways, why not just make it automatic?