Gave that a shot too, but the manpage of sudo says the following:
Quote:
|
If the invoking user is root or if the target user is the same as the invoking user, no password is required. Otherwise, sudo requires that users authenticate themselves with a password by default
|
So
perl just grabs the output of sudo:
Quote:
|
[sudo] password for www-data:
|
Unfortunately www-data has no password, since it is not intended to be used as a system account. And apart from that, i don't even know how to submit this password to sudo...