Cheshire Cat Computing
http://www.steveshipway.org/forum/

PNG graphs creates with wrong permissions
http://www.steveshipway.org/forum/viewtopic.php?f=2&t=8078
Page 1 of 1

Author:  yasiru [ Thu Dec 06, 2012 3:26 pm ]
Post subject:  PNG graphs creates with wrong permissions

Hi All,

I'm using routers2.cgi to display MRTG graphs using .rrd data files in a linux server.

This system is working fine. Only problem is the .png graphs creates with 600 permissions, but it needs 644 permission to display from the web page. So I had to change the permissions manually. How can I fix this?

I know this is not much relate to routers2.cgi but hope I can get any suggestions?

Author:  yasiru [ Fri Dec 07, 2012 12:25 pm ]
Post subject:  Re: PNG graphs creates with wrong permissions

Well finally I have fixed it :)

It got fix by adding following code in top of the script. In my case a have added it just below the ##CONFIG#START# comment line in the routers2.cgi

umask(0033);

:wink:

Author:  panousakis [ Thu Dec 27, 2012 11:33 pm ]
Post subject:  Re: PNG graphs creates with wrong permissions

I had the same problem and i fix it with your help, thank you very much yasiru!

Page 1 of 1 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/