Web Hosting Talk







View Full Version : problem with file owner


nachopo
12-01-2002, 10:46 PM
hi!
I have a web site in Alabanza's servers and I have the following problem:
A php script run and upload files to a database. Files uploaded have "www" as file ownser and not the original owner (ie username of accoun), so files cant be read or write by users.

I found a cgi that change filw owners and attributes, but I run it by a php and I get the same problem. Someone told me that the problem is that this cgi don't have permissions too.

any idea ?
regards

mind21_98
12-02-2002, 10:29 AM
On most Linux systems, regular users can't use chown (which is probably what that program relies on). You can install a file manager script such as PHP File Manager (http://sourceforge.net/projects/phpfilemanager/) and use that to chmod 777 those files. Does that help?