Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: FileCache permission probs from Apache

by dga (Hermit)
on Jul 22, 2003 at 17:17 UTC ( #276827=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://276827]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-06-19 08:46 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (91 votes). Check out past polls.