No such thing as a small change | |
PerlMonks |
Problem writing when running script from Postfix mail to scriptby Xxaxx (Monk) |
on Jul 12, 2006 at 06:20 UTC ( [id://560624]=perlquestion: print w/replies, xml ) | Need Help?? |
Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which accepts input via email.
The content drives the update of a news page on my website.
The script runs fine on old colocated server. Slackware, Apache, Qmail. On the new server my script receives the input okay, but I can't write to files because of permissions issue. Apparently qmail was performing a little magic (i.e. I didn't set the config, it just happened to work straight out of the box) such that when an email was passed into a perl script the user was set to be the domain user. Thus the script had all the necessary permissions. With Postfix I am not so lucky. When the email calls the perl script it is running as a different user which does not have permissions to write. I've been off in the world of Java for a while and more than a bit rusty on the finer points of perl. I would be most appreciative of a clue about where to look to solve this problem. Thanks in advance, Claude
Back to
Seekers of Perl Wisdom
|
|