have just noticed when i actually looked that, i used simplegal for a bit and that has created all the thumbnails and sized images as the server owner but i can delete them.... even tho the owner is '99' and im like '32556'.
Is it because the folder the thumbs are in, in this new gallery are set to 99 but the thumbs in simplegal gallery or in a folder i created and therefore the folder owner is me '32556'?
The way around it is to suexec PHP so that it runs under your user, but that's less secure in that a rogue script could obliteratify your entire home directory....and goes against the principle of 'least privileges'...the webserver, and any service, should only have the minimum necessary access unless explicitly granted.
There's upsides and downsides to both ways
Luckily a chown/rm is something even a level 1 monkey could do in his sleep in half a second, so it's not so bad.
tried to edit the script so that any files or folders created by it made me the owner. However using chown() it had a little cry, i think it was to do with the fact the servers uid and mine were not in the same group? It was a safe_mode error.
Inquisitor said:
I had this before with SimpleGal, 'tis a pain in the arse
I wrote a little script that you select delete file or folder, then put in the filename (relative to the place this file is uploaded) hit submit and it deletes it (aslong as the rwx permissions are right on the file you are trying to delete. Should work on simplegal created files)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.