Cheshire Cat Computing

Software support and information
It is currently Tue Nov 11, 2025 2:48 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Dec 06, 2012 3:26 pm 
Offline
User

Joined: Thu Dec 06, 2012 2:59 pm
Posts: 3
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?


Top
 Profile Send private message  
 
PostPosted: Fri Dec 07, 2012 12:25 pm 
Offline
User

Joined: Thu Dec 06, 2012 2:59 pm
Posts: 3
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:


Top
 Profile Send private message  
 
PostPosted: Thu Dec 27, 2012 11:33 pm 
Offline
User

Joined: Thu Dec 27, 2012 11:27 pm
Posts: 1
I had the same problem and i fix it with your help, thank you very much yasiru!


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group