File Permissions on Uploaded files
Posted: Tue Jan 18, 2005 10:43 pm
Can anyone explain or point me in the right direction to solve the problem I have? (cmsms version 8.2)
When uploading files through the web interface they are written to the web server with permissions of 600. This means I can't edit them, as they seem to need to be 666 - I can prove this almost works by using a shell to see the perms of what has been uploaded and to change them by hand.
Even then I run into problems when using the image editor (configured to GD) - I can see the image, even re-size it, but have trouble writing it back
e.g.
*Upload a file. It can be seen in the image manager page with dimensions etc.
*It creates the file itself (perms 600) and a thumbnail (perms 644)
*Fix the perms to 666 (from 600) by hand in a shell.
*Cick on the edit icon - it loads into the pop-up. I re-size the image - looks fine.
*Click on the save icon - it _seems_ to save.
I get left with the orginal files, as well as a file with a long temporary sort of name with perms 644 and no updated file in the image manager page.
Now, I'm guessing that this is something constrained by the web server - but can I do anything about it?
Many thanks for any clues or pointers....
When uploading files through the web interface they are written to the web server with permissions of 600. This means I can't edit them, as they seem to need to be 666 - I can prove this almost works by using a shell to see the perms of what has been uploaded and to change them by hand.
Even then I run into problems when using the image editor (configured to GD) - I can see the image, even re-size it, but have trouble writing it back
e.g.
*Upload a file. It can be seen in the image manager page with dimensions etc.
*It creates the file itself (perms 600) and a thumbnail (perms 644)
*Fix the perms to 666 (from 600) by hand in a shell.
*Cick on the edit icon - it loads into the pop-up. I re-size the image - looks fine.
*Click on the save icon - it _seems_ to save.
I get left with the orginal files, as well as a file with a long temporary sort of name with perms 644 and no updated file in the image manager page.
Now, I'm guessing that this is something constrained by the web server - but can I do anything about it?
Many thanks for any clues or pointers....