XUpload - Permissions/Owner of uploaded files

Posts: 1
Joined: Feb 17, 2009 10:23 am

Permissions/Owner of uploaded files

#1 Postby nico.holzberger » Feb 17, 2009 11:04 am


I just installed XUploadPro 3.0 on a linux environment and file uploads work fine.

But my problem is that the uploaded files are owned by the same user/group as the cgi files (lets say admin/psacln). When I later try to handle these files via PHP, I cannot access them (ie for renaming) as apache is run by a different user/group (apache/apache).

So my question is if there is any possibility to assign a different user/group after uploading or change permissions on that file (by the upload scripts). I cannot do it via PHP as the user apache does not have the permissions to access the file.
I already tried to chown/chgrp all cgi files to apache/apache but the the upload does no longer work.

Thanks already for your help!

User avatar
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 18, 2009 8:50 am

Hmm...we chmod file to 666...doesn't helps anyway? :(
Do you have this in your httpd.conf?

Code: Select all

User apache
Group apache
Probably mod_suexec can do the trick.

Don't think it's possible to change owner from perl.