Group ownership / php

benoitdm

New member
Joined
Oct 16, 2006
Messages
2
Hello,

I'm running the last version of DA on a freebsd 5.3 server.

Each time a user upload a file using php, the new file belongs to the user (I'm using suphp) but to the group wheel (gid=0 (!) )

That was the same without suphp (except the file was belonging to apache).

Group and user are apache in httpd.conf ....

apache is belonging only to the apache group ...

No idea ?

Benoit
 
Solved

The issue is with the move_uploaded_file() function in php. This function is using the GID of the parent folder to create the uploaded file. As the temp directory was on the same file system than the web root, the umask was not applied ... moving the temp dir to one md device solved the issue.

Benoit
 
Back
Top