Xxaxx has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem writing when running script from Postfix mail to script
by grinder (Bishop) on Jul 12, 2006 at 06:46 UTC | |
Re: Problem writing when running script from Postfix mail to script
by Khen1950fx (Canon) on Jul 12, 2006 at 08:11 UTC | |
Re: Problem writing when running script from Postfix mail to script
by Anonymous Monk on Jul 16, 2006 at 20:39 UTC |