Page 3 of 3
Re: Backups not listed
Posted: Fri Apr 10, 2015 3:11 pm
by BanditBBS
See, then that is just confusing as ever, why wont it show mine, hmmm.
Re: Backups not listed
Posted: Fri Apr 10, 2015 3:15 pm
by BanditBBS
I just chmod 777 to /store , /store/backups and /store/backups/nagiosxi and now they are listed, so its definitely a permissions issue. Now to try and find out the proper permissions on the folders, can you show me yours on those three folders?
Re: Backups not listed
Posted: Fri Apr 10, 2015 3:29 pm
by cmerchant
Code: Select all
[root@nagiosd1 scripts]# ls -ld /store
drwxr-xr-x. 3 root root 4096 Oct 7 2014 /store
[root@nagiosd1 scripts]# ls -ld /store/backups/
drwxr-xr-x. 5 root root 4096 Oct 7 2014 /store/backups/
[root@nagiosd1 scripts]# ls -l /store/backups/
total 12
drwxr-xr-x. 5 root root 4096 Apr 10 07:00 mysql
drwxr-xr-x. 2 nagios nagios 4096 Apr 10 14:53 nagiosxi
drwxr-xr-x. 5 root root 4096 Apr 10 08:00 postgresql
Re: Backups not listed
Posted: Fri Apr 10, 2015 3:34 pm
by BanditBBS
Seems 755 is what is needed. Weird that RW wasn't enough for GUI to read the fodler but instead needs RX.
Thanks!
edit: Even weirder, new backups being created fine, but the test permissions button says not writable by nagios user or group.
Re: Backups not listed
Posted: Mon Apr 13, 2015 9:18 am
by cmerchant
Banditt, I think a local backup that is created on demand, uses group apache (the user apache is also in the nagios group).
The scheduled backups are run by a cron job (I think is root). And what the local permissions test should have is the following:
drwxrwxr-x 2 nagios nagios 4096 Apr 12 17:01 /store/backups/nagiosxi
give both the owner and group write permission as well.
Re: Backups not listed
Posted: Mon Apr 13, 2015 9:43 am
by BanditBBS
You can close this up, we're all good, all backups are working fine now.
Re: Backups not listed
Posted: Mon Apr 13, 2015 9:54 am
by cmerchant
We'll go ahead and close the thread. Thanks.