[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] OT? Mail to a script/program



"rob@xxxxxxxx" wrote:

> > >> We have set this alias entry
> > >> (alias: "|/home/sites/site41/web/cgi-bin/alias.cgi")
> > >> to activate a script when receive email, but Sendmail answers
> > >> "Cannot mail directly to files"
> > >>If I try from a shell: perl/home/sites/site41/web/cgi-bin/alias.cgi
> > >>it works.!
> 
> Zeffie wrote:
> 
> >who owns the file and what group is it in....
> 
> Its ownership is root.root

1. It's NEVER a good idea for a cgi-file to be owned by root.

2. Files owned by root will NOT run through apache on any website the
way your Raq is set up.

3. If the cgi-file is NOT designed to be run through apache it should
NOT be in the "web" tree.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205