Boost and graph permission

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Boost and graph permission

Post by Babel »

I have next problem.
I installed plugin Boost, and now has problem with graphs update.
Graphs which have permission 777 is updated normally but poller.php create rrd with 644 permission by default.
Can I change this and force poller to create rrd with access rights 777 in rra directory?

I try set umask 011 before when poller starts but this nothing change
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Re: Boost and graph permission

Post by Babel »

Babel wrote:I have next problem.
I installed plugin Boost, and now has problem with graphs update.
Graphs which have permission 777 is updated normally but poller.php create rrd with 644 permission by default.
Can I change this and force poller to create rrd with access rights 777 in rra directory?

I try set umask 011 before when poller starts but this nothing change

I have in view of I can automatically force poller to create files with the rights 0777?
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Edit your poller_boost.php and use the umask("0222"); command there. I believe that should do it. I addition, can you log a bug on this to http://bugs.cacti.net

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Post by Babel »

TheWitness wrote:Edit your poller_boost.php and use the umask("0222"); command there. I believe that should do it. I addition, can you log a bug on this to http://bugs.cacti.net

TheWitness
Where i can place this command reference?
I place it in the beginning of poller_boost.php, but this not helps to me
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think you need to do some research on how *NIX works.

This is a fundamental concept. I suggest you do some googling on this concept.

Commands to search for include:

umask
chown
chmod

As I say in the README, if you don't know what you are doing, best leave it alone.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Post by Babel »

thank you, but may be we not understand each other correctly.
I know how commands chmod, chgrm, and umask works in *NIX
If i understood you correctly, you offer to insert php's command umask("0222") in poller_boost.php. So what i ask you -- where i can put this command in this file?

I already use the command "chmod 666" in crontab for files in rra directory every 5 minutes, but I think this decision is not very good


For understanding
1. I set my umask to 22 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' after polling.

2. I stopped Apache. I set my umask to 11 in the shell (as root). I start Apache. I create a graph , and its permissions are 'rw-r--r--' again.
Babel
Posts: 29
Joined: Sat Feb 07, 2009 8:05 am

Post by Babel »

Thank you for patience
I have understood a problem
I wrote umask direct in /etc/init.d/httpd in the "start" and "reload" directives. Now all works.

Excuse me that i inconvenienced you, this is my oversight
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests