[wellylug] aliases/postfix/bash etc
Jamie Baddeley
wellylug at vpc.co.nz
Thu Oct 7 13:07:53 NZDT 2004
Hi,
I have a small script that parses incoming email and creates a file in a
spool directory. The script is called by an alias.
i.e
test-user: "|/usr/local/bin/email2sms"
The problem is that the script is running (AFAICT) as nobody, because
the file that is produced has an owner of nobody, and a group of
nogroup.
The result is the script does not have rights to mv the file into the
spool directory - which breaks everything.
What can I do to make the script run as a certain user (i.e postfix),
especially when it moves the file into the spool directory? I've tried
suid'ing the script i.e chmod 4755 email2sms, but this doesn't appear to
work.
The answer won't involve changing the permissions of the spool
directory, as I don't want to do this for security reasons.
help?
jamie
--
More information about the wellylug
mailing list