in reply to change user in perl

Do you want to? Sounds a tad dangerous. The problem with su(1) is that it prompts for a password, you might try sudo(1) instead - but it takes a bit of setting up.

Replies are listed 'Best First'.
Re^2: change user in perl
by psini (Deacon) on Feb 24, 2010 at 15:35 UTC

    ... and having www-data as a sudoer is dangerous, too. I would go with Corion's option.

    Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."