TomDavidson's suggestion of suexec is the best solution but can be a little tricky. An ugly hack but something that will work quickly is to run a cron job as root every so often (say every hour, or whatever works best for you) that chown's the upload directory:
10 * * * * /bin/chown user:user /path/to/your/upload/direc
-Pat
Main Topics
Browse All Topics





by: TomDavidsonPosted on 2004-09-02 at 08:46:34ID: 11964784
The easiest (but not most secure way) would be to chmod the file after uploading it [http://www.php.net/chmod] .
Alternatively you could use the suexec mechanism of su_php to have all your scripts running as the user and group that you specify.