I have created an upload function for my users in php running apache server. (apache running as nobody:nogroup)
When the files get uploaded it will take the user/group of Apache.
How can I change it to the actual user:group before writing to the disk? The reason is that I have disk quota for the users.
I tried chown(filename,users:group);
It did not work.
Anyone have any idea?
Thanks.