Re: Having trouble writing/copying/renaming file to sub-directory [message #170980 is a reply to message #170969] |
Mon, 13 December 2010 18:37 |
seeWebInstead
Messages: 14 Registered: October 2010
Karma:
|
Junior Member |
|
|
> From: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= <alvaro.NOSPAMTH...@demogracia.com.invalid>
> Then it's clear why you can't write on it:
> drwxr-xr-x 2 3237 vhosts 4096 Dec 11 02:10 RepSOAP
> You need to set the "w" (write) permission for other users. You can
> probably do it with your FTP client.
Yes, FTP does support chmod. I tried setting permission 777:
drwxrwxrwx 2 3237 vhosts 4096 Dec 14 01:27 ReqSOAP
and that fixed the problem. But allowing anyone anyone in the whole
world to write to this sub-directory seems a bad idea, so next I
backed it off to just 775:
drwxrwxr-x 2 3237 vhosts 4096 Dec 14 01:27 ReqSOAP
and it still was writable by my PHP script, so I hope that's safe
enough. All files in this directory (including the one I'm writing
now) will be public-key signed and encrypted, so if other users in
the same group write junk there, overwriting my own files during
the brief interval after I write them before a callback mechanism
fetches them, the worst it can do is disrupt message passing, not
insert forged messages. (The same will be true of reply messages in
another similar sub-directory, where there will be a brief interval
after a call-forward mechanism writes them until the local PHP
script fetches them.)
Thanks.
|
|
|