Re: php special permissions
| From: | Andrew Brampton | Date: | Thu, 18 Dec 2003 12:51:47 +0000 |
| Subject: | Re: php special permissions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172940@lists.php.net to get a copy of this message | ||
Another solution would be to place each change to the files in a MySQL
table, and then have a cron that is run every X minutes read this table, and
makes the actual changes.... I'm not sure if this idea is suitable in your
situation due to the time lag between the client asking for the change, and
the change happening. In some situations this is acceptable.
Andrew
----- Original Message -----
From: "Mat Harris" <mat.harris@genestate.com>
To: <php-general@lists.php.net>
Sent: Thursday, December 18, 2003 12:24 PM
Subject: [PHP] php special permissions
Hi,
I am building a web interface to the vacation autoresponder program on
linux.
I let users login, edit their message and enable the autoresponder.
The last step (enabling) is where the fun begins because php is run as
apache on
my box, and each users' .vacation.msg and .forward are not owned by apache.
So you say, ok lets make apache run as group 'vacation' and also change the
ownership
on .vacation.msg and .forward.
Well this makes sendmail cry out because it doesn't like having
group-writable .forward
files.
How would you guys suggest i did this?
I can post code if required.
--
Mat Harris
Network/Systems Administrator
Genestate