[tpm] Apache permission question
indy at indigostar.com
Tue Oct 6 09:29:17 PDT 2009
ls -l returns:
-rw-r--r-- 1 indigo psacln 1061738 Aug 31 23:57
whoami returns 'apache' in this script and returns 'indigo' in the other
It looks like a user id issue. I don't really want to give the file
world write permission. Although group write pemission might work.
I am looking for ideas on a 'best practice' solution to this.
IndigoSTAR Software -- www.indigostar.com
----- Original Message -----
From: Antonio Sun
To: Indy Singh
Cc: tpm at to.pm.org
Sent: Tuesday, October 06, 2009 12:21 PM
Subject: Re: [tpm] Apache permission question
On Tue, Oct 6, 2009 at 11:59 AM, Indy Singh <indy at indigostar.com> wrote:
The problem is that the second script does not have permission to delete
the log files. I have found that this is because the two scripts run
under a different used id. The cgi-bin scirpt runs as me, the second
script runs as 'Apache'.
Please give the 'ls -l' of the log file. I suspect that it's only the
unix's file permission problem.
Also keep in mind that if the 2nd script might not be able to delete the
log file unless you do some log rotates.
More information about the toronto-pm