http://www.perlmonks.org?node_id=145051

nomis80 has asked for the wisdom of the Perl Monks concerning the following question:

My Perl program is not running as root, but it knows the username and the password of another user. Is there any way of making it run another program as this user? I tried with "su -c" and printing the password to su's STDIN, but su is secure and complains if its STDIN is not a tty.