Cacti Folder Permissions - and rra

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Cacti Folder Permissions - and rra

Post by eholz1 »

Hello All,
The age-old issue of what are or what should the directory permissions be for a Cacti installation?
Everytime I do and upgrade or fresh install I have issues with graphs not being created in the rra directory.

I am running on Oracle 9.x linux. I run the poller job as "cacti" It runs every minute.

On a fresh install it set /var/www/html/cacti permissions the follwoing way:
sudo chown -R apache:apache /var/www/html/cacti

I insure I have cacti.log and cacti_stderr.log in the cacti/log directory - owned by apache, etc

Then I do "sudo chown -R cacti:cacti /var/www/html/cacti/rra" - hoping this is correct.

So everything is now running - when I add a new device (a switch or router), and create a couple of graphs - I get an error
saying it cannot write to the directory - or sometimes "poller may not have run yet" messages.

Then I go to the cacti directory and do this command: "chmod -R a+w /var/www/html/cacti/rra" and this seems to fix the issue. Which user (apache or cacti) should be writing the rrd files?


Thanks for a useful open source application - it is a great app.
I am open to any suggestions
eholz1
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Cacti Folder Permissions - and rra

Post by macan »

sudo chown -R cacti:apache /var/www/html/cacti
sudo find /var/www/html/cacti - type f -exec chmod 664 {} \;
sudo find /var/www/html/cacti - type d -exec chmod 775 {} \;

If you want to be more secure, set 660 and 770
Let the Cacti grow!
eholz1
Cacti User
Posts: 254
Joined: Mon Oct 01, 2018 10:09 am

Re: Cacti Folder Permissions - and rra

Post by eholz1 »

Hello,

Thanks for the reply. I will try these on my test Cacti servcer.

eholz1
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest