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
Cacti Folder Permissions - and rra
Moderators: Developers, Moderators
Re: Cacti Folder Permissions - and rra
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
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!
Re: Cacti Folder Permissions - and rra
Hello,
Thanks for the reply. I will try these on my test Cacti servcer.
eholz1
Thanks for the reply. I will try these on my test Cacti servcer.
eholz1
Who is online
Users browsing this forum: No registered users and 1 guest