Page 1 of 1
Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 5:30 am
by Kerem Gümrükcü
Hi,
running "Fiji" and was still happy until some problems with thumbs created from
uploaded images. The main issue is the permissions on the thumbs created from
the Image Manager. The Thumbs have not sufficient permissions and then show
a broken link image. The same problem with newly created folders. They cant be
shown neither, because of their insufficient permissions flags. I must chmod them
by hand to make them work. How can i solve this? Thanks in advance...
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 9:30 am
by jelle
eh? The proces with the id of the webserver creates some files, but with permissions set so that he cannot read them himself?
That sonds like the Umask is set wrong, if you are on a Unix/Linux host. What are the exact permissions a file is made with? (in either rwxrwxrwx or 644 notation). Does your Hosting provider use some advanced tricks like suexec?
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 3:26 pm
by Kerem Gümrükcü
Hi,
yes, the server runs with suPHP and i think, that this is the reason why the mask is wrong.
The public part (permissions on the thumb) has no permissions, not even read permissions.
But how to solve this?
Thanks in advance...
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 5:22 pm
by jelle
If it is your provider that applied this 'special extra secure sauce', then I think it is their problem too to set a umask for user 'you' that suits you. I'd suggest using 022 as umask, but how to set it is something you have to ask your provider.
Does using SuPHP mean that the php code is run by a different UID than apache? But if you can't read from the same uid you just wrote with, it is an error.
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 5:45 pm
by Kerem Gümrükcü
Hi,
this suPHP shit seems to work a different way i was still not able to find out what
our admin did there. In general i run my apps on my own servers, but in this situation
i depend on a other system, that cant be changed that much. Anyway i solved this
by chmodding the created files with a script that runs with other permissions after
the folder/file has been created. It works and is secure, thats what all counts...
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 7:08 pm
by jelle
I suspect that it was intended to be more secure (but took a wrong turn somewhere). If you have shell acces, maybe you could set the umask in the profile or bashrc, but chances are that it's a setting somewhere in the config for suPHP.
Re: Image Manager and created Thumbs Permission Problem...
Posted: Thu Mar 16, 2006 7:24 pm
by Kerem Gümrükcü
Hi,
but chances are that it's a setting somewhere in the config for suPHP.
yes thats something inside the suPHP Config and i dont have access to the conf-file.
But i already solved it as mentioned before. Thanks for the Help...
Re: Image Manager and created Thumbs Permission Problem...
Posted: Wed Apr 25, 2007 4:54 pm
by ploum
I've the same problem here and, so far, no solution. As I'm root on the server, I can change the suPHP config but it has no effect. And all others PHP system (like Dotclear) work fine on this server.
All thumbs created have a 751 permission, which is odd...