in reply to FileCache permission probs from Apache

Have you tried making apache the owner of the file in question?

Otherwise, it can never actually do certain file operations in a directory which has the sitcky bit set (the last t in the mode)

Update: Also I would change the mode to something a bit less dangerous.

#WARNING: non perl code follows! chown apache /tmp/FileCache chmod 700 /tmp/FileCache #End of non perl code

More update: corrected file mode as noticed by sgifford that the FileCache is a directory not a file

Replies are listed 'Best First'.
Re: Re: FileCache permission probs from Apache
by sgifford (Prior) on Jul 22, 2003 at 17:40 UTC
    I've never used FileCache, but from the OP's question it looks like it's a directory. If it is, you almost certainly want mode 0700, not 0600. Only giving read and write, but not execute, makes it impossible to use anything in that directory:
    $ mkdir t100
    $ chmod 600 t100
    $ ls -ld t100
    drw-------    2 sgifford sgifford     1024 Jul 22 13:41 t100
    $ cd t100
    bash: cd: t100: Permission denied
    echo 'hi' >t100/test
    bash: t100/test: Permission denied
    $ cat t100/test
    cat: t100/test: Permission denied