[tpm] Apache permission question

Alex Beamish talexb at gmail.com
Tue Oct 6 13:25:17 PDT 2009


Hi Indy,

Typically you'd just have 'apache' and 'indigo' in the same group, and
make the log file group writable. That way you avoid having the file
world writable, which is undesirable.

Alex



On 10/6/09, Indy Singh <indy at indigostar.com> wrote:
> ls -l returns:
> -rw-r--r-- 1 indigo psacln 1061738 Aug 31 23:57
> /var/www/vhosts/indigostar.com/httpdocs/private/logs/200908-index.log
>
> whoami returns 'apache' in this script and returns 'indigo' in the other
> script.
>
> 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.
>
> Indy Singh
> 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.
>
> cheers
>
>
>
>
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>


-- 
Alex Beamish
Toronto, Ontario
aka talexb


More information about the toronto-pm mailing list