Error: Unable to write to temp_path ('/var/cache/naemon') - Permission denied
Debian 8 Jessie - amd64
Thruk 2.08
Naemon Core 1.0.5-pkg
Hi, I am getting this error on the web page, when i try to use the "Check your configuration changes" box :
Total Errors: 1 ... Error: Unable to write to temp_path ('/var/cache/naemon') - Permission denied
There's no error with the command line /etc/init.d/naemon configtest
Total Warnings: 0 Total Errors: 0
I have made no change at all !!!
I find that updating naemon sometimes changes the permissions on the folder. What is the current permissions set on the /var/cache/naemon folder?
Regards
Jens
This is a fresh install from scratch. This is the permission set by the installer :
Unfortunately the permissions for the naemon folder is not shown in your screenshot. Please append -a to your ll command so we get the permissions for . also
All right ! Here it is :
Ok. I guess the problem is that the problem is as follows: Thruk is being run as www-data user and therefor does not have write access to the folder.
So change the permissions on the folder to +w for others. chmod o+w /var/cache/naemon
I have to do this whenever I update naemon. Should probably file an issue on that :smile:
So I suggest that this issue is left open, until the source problem is fixed. My answer is only a temporary fix.
Ok i've change the permissions on the folder, as you say. It does fix nothing !
Can you show me the resulting permissions?
Here it is :
Sorry, it should have been g+w instead. Just tested on my own setup.
Thank's it work's ! ;-)
You might want to user o-w to remove the write rights for other users.
Perfect ...