Re: chown / chgrp of a http owned file after upload
| From: | Bix | Date: | Wed, 06 Aug 2003 10:47:32 +0000 |
| Subject: | Re: chown / chgrp of a http owned file after upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158447@lists.php.net to get a copy of this message | ||
Much appreciated!
Will try the ftp approach, thanks.
"Jason Wong" <php-general@gremlins.biz> wrote in message
news:200308061823.32153.php-general@gremlins.biz...
> On Wednesday 06 August 2003 18:16, Bix wrote:
>
> > I have written as part of my CMS, an image upload system, now when the
> > images are placed in the destination folder, they are owned by
httpd.root
> > and I need to get them to be owned by siteuser.sitegroup.
> >
> > I have tried to chmod and chgrp it to siteuser.sitegroup but it gives
> > permission denied errors.
> >
> > Is there any way round this without enabling run as root?
>
> Only a user with root privileges can chown/chgrp.
>
> > Or is there a
> > safe way to do this?
>
> The easiest way may be to ftp the uploaded files back onto the server
using
> the 'siteuser' account.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> A man with 3 wings and a dictionary is cousin to the turkey.
> */
>