[ciapug] PHP file upload and permissions....
Jonathan Bailey
ciapug@cialug.org
Tue, 08 Mar 2005 11:21:33 -0600
Here's the issue. My webserver runs under www-data. I have a user (in
/etc/passwd) of the name 'codeclub'. www-data is a member of the group
'codeclub'. I'm attempting to upload a file to that directory. Here is
how the directory has it's permissions:
drwxrwxr-x 2 codeclub codeclub 1.3K 2005-03-08 11:14 files
Apache should be able to upload to this since www-data is a member of
codeclub, right? For some reason, it doesn't work. If I chmod o+w files,
I can upload fine... Here is a uploaded file permisssions after doing
o+w on the directory:
-rw-r--r-- 1 www-data www-data 980K 2005-03-08 11:14 winscp374.exe
Any ideas on why I have to make it world writable? Shouldn't just group
writable work?
Jon