Icy Phoenix

     
 

Uploaded Images Have 600 Instead Of 644

Uploaded Images Have 600 Instead Of 644

Article
Reply with quote    Download Post  
Post Uploaded Images Have 600 Instead Of 644 
 
I don't really know why, I think there is a failure than the configuration of the server. It had happend when I change to a new server. All images you upload have permisions 600 so anyone can see the image.
Where do you think is the failure?
There is any way to put in the uploas script to give to the file permisions 644?
There is any way to do it through cronjobs?

TIA!!



 
tiolalu - View user's profile Send private message  
tiolalu [ Mon 12 Nov, 2007 23:46 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Uploaded Images Have 600 Instead Of 644

Comments
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
I have already done the cronjob, so each 15 minutes the system done the permisions to all files in folder, but not yet solved the problem .



 
tiolalu - View user's profile Send private message  
tiolalu [ Fri 16 Nov, 2007 07:27 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
What server do you use?



 
novice programmer - View user's profile Send private message  
novice programmer [ Fri 16 Nov, 2007 15:13 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
cPanel, but the same forum have been working in Plesk, another cPanel, HSphere, and another cPanel, but in the last one it don't work.



 
tiolalu - View user's profile Send private message  
tiolalu [ Sat 17 Nov, 2007 13:52 ]
Reply with quote    Download Post  
Post Error 600 Images 
 
it
appears that this particular server has a bit tighter security

see this
http://www.interaktonline.com/Produ...ons+at+600.html

http://drupal.org/node/153526

http://gallery.menalto.com/node/27954



 
casimedicos - View user's profile Send private message  
casimedicos [ Sun 18 Nov, 2007 16:03 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
casimedicos, thanks, I have repported it.

(I don't know when I could test it because my web is under DDOS attack since friday   .



 
tiolalu - View user's profile Send private message  
tiolalu [ Mon 19 Nov, 2007 17:44 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
tiolalu wrote: [View Post]
casimedicos, thanks, I have repported it.

(I don't know when I could test it because my web is under DDOS attack since friday   .


puff

http://directory.google.com/Top/Com...ial_of_Service/

in spanish
http://www.rediris.es/rediris/boletin/57/enfoque2.html



 
casimedicos - View user's profile Send private message  
casimedicos [ Mon 19 Nov, 2007 19:15 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
casimedicos, thanks! I'm still under atack .

I have changed the server and it works again... In the old server I have "fix" the problem with a cronjob.

Thanks anyway!! .



 
tiolalu - View user's profile Send private message  
tiolalu [ Fri 23 Nov, 2007 23:17 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
tiolalu wrote: [View Post]
I don't really know why, I think there is a failure than the configuration of the server. It had happend when I change to a new server. All images you upload have permisions 600 so anyone can see the image.
Where do you think is the failure?
There is any way to put in the uploas script to give to the file permisions 644?
There is any way to do it through cronjobs?

TIA!!

What feature are you use to upload images?

You can change CHMOD via PHP if your server allows it.



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Wed 28 Nov, 2007 10:36 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
Mighty Gorgon, I use the little button that you can unable to upload images into the server.

Now is working fine (in the new server)



 
tiolalu - View user's profile Send private message  
tiolalu [ Fri 30 Nov, 2007 01:34 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
Mighty Gorgon wrote: [View Post]
tiolalu wrote: [View Post]
I don't really know why, I think there is a failure than the configuration of the server. It had happend when I change to a new server. All images you upload have permisions 600 so anyone can see the image.
Where do you think is the failure?
There is any way to put in the uploas script to give to the file permisions 644?
There is any way to do it through cronjobs?

TIA!!

What feature are you use to upload images?

You can change CHMOD via PHP if your server allows it.


Hi, can you tell me how to change the chmod in the upload.php? I think I've the same problem.

I already take a look in the upload.php but there's no chmod...



 
Rene - View user's profile Send private message  
Rene [ Mon 07 Jan, 2008 14:59 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
yes...same problem for me too..

all files in posted_images have CHMOD 600


maybe luca have some solution



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Mon 07 Jan, 2008 15:34 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
I found a solution which works for me.

OPEN upload.php (in forum root directory)

FIND
Code: [Download] [Hide] [Select]
$file_size = $_FILES['userfile']['size'];

AFTER ADD
Code: [Download] [Hide] [Select]
chmod($filename_tmp,0644);




 
Rene - View user's profile Send private message  
Rene [ Wed 09 Jan, 2008 11:35 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
great work Rene...

Thanks !


p.s.:topic sticky!



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Thu 10 Jan, 2008 19:10 ]
Reply with quote    Download Post  
Post Re: Uploaded Images Have 600 Instead Of 644 
 
Hi,

Luca told me that you dont need to add this in the new RC3.

In this release this error is fixed.

If you did an update from an older RC to the newest and want to change the chmod automaticly, please take a look into the install/contrib folder, where you find a file which is called reset_permissions.php

open that file, and there you find a line
Code: [Download] [Hide] [Select]
$dir = 'files/album/otf/';

change it to whatever you need to change permissions to 0755, and then launch it from your root



 
KugeLSichA - View user's profile Send private message  
KugeLSichA [ Fri 11 Jan, 2008 07:39 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 2
Goto page 1, 2  Next