From: Randy Ramsdell (no email)
Date: Fri Apr 18 2008 - 10:01:23 EDT
Victor Duchovni wrote:
> On Fri, Apr 18, 2008 at 09:35:19AM -0400, Randy Ramsdell wrote:
>> I am trying to run a script that parses a file which is created by
>> "aliases." The file has perms of 600, owner "nobody." The only problem
>> with this is that the same aliase line that creates the file, pipes to a
>> script that cannot access the file. The script runs as postfix and the
>> file owned by nobody. What is the easiest way to resolve this? Ideally
>> that is a way to change the file ownership to postfix or run the script
>> as nobody.
> This is anecdotal report, please post concrete facts.
> - "postconf -n" output.
> - Relevant aliases file entries
> - Logs
> - Show permissions for every path component of the target file.
Was it really confusing? The aliases file can copy an email to a file
and also pipe to a script. The file perms of the email prevent the the
script from parsing the file.
The logs show the email is sent to autoresponder which works as expected.
ls -l /tmp |grep FDC
-rw------- 1 nobody nobody 4249 Mar 26 10:09 FDC_RETREAT
I assume the script runs as postfix since postfix runs as user:postfix.