BackupPC-users

Re: [BackupPC-users] The graph is not showing on the main backuppc page

2016-09-09 12:54:59
Subject: Re: [BackupPC-users] The graph is not showing on the main backuppc page
From: David Trebacz <david AT trebacz DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 9 Sep 2016 09:54:13 -0700

Agreed Karlis, but just giving 644 to the pool.rrd file did not work on my 16.04 Ubuntu install.

I also had to give execute permissions to the two directories above (not sure why, but it took exactly that to show the rrd graphs). I tried several different combinations and this was the only one that would "work" on my installation. This may be a result of the backuppc directory mount residing in a user directory in my non-standard installation.

David Trebacz
David Trebacz Profile Picture
www.linkedin.com/in/trebacz
Email: david AT trebacz DOT com
Mobile: 815-529-2638
On 09/08/2016 10:17 PM, Kārlis Irmejs wrote:
Apache webserver by default runs under www-data user, it needs read 
access to pool.rrd. Easiest solution is to add read permissions for 
others group to it (chmod 644).
--
Karlis


On 08.09.2016 20:29, David Trebacz wrote:
I had the same issue and decided to investigate. My error log looked 
like this:

ERROR: opening '/var/lib/backuppc/log/pool.rrd': Permission denied: 
/usr/share/backuppc/cgi-bin/index.cgi, referer: 
http://servername/backuppc/index.cgi

I found that I had to give execute permissions to the folders above 
and read permissions to "everyone" on the pool.rrd then the graph 
appeared. It would seem that the CGI script is executing as "everyone" 
vs "backuppc user"

Here are the minimal permission changes I made to get things to work.
Changed BackupPC directory permission from: 2750 to 2751 --> 
drwxr-s--x backuppc backuppc
Changed BackupPC/log directory permission from: 750 to 751 --> 
drwxr-x--x backuppc backuppc log
Changed BackupPC/log/pool.rrd directory permission from: 640 to 754 
--> -rwxr-xr-- backuppc backuppc pool.rrd

My server is blocked from public access, so I was comfortable making 
this change. I would be very happy to hear anyone's comments regarding 
what type of security issue this may be -and if there is another way 
to better way to solve this.

*David Trebacz*
David Trebacz Profile Picture
www.linkedin.com/in/trebacz <http://www.linkedin.com/in/trebacz>
Email:david AT trebacz DOT com <mailto:david AT trebacz DOT com>
Mobile: 815-529-2638
On 09/08/2016 01:23 AM, Orazio Di nino wrote:
Hello Alexander,

In the /var/lib/backuppc/log/pool.rrd Apache2 log file is an access 
denied error. I attach the file.
What can I do ?

Il 31/08/2016 20:16, Alexander Moisseev ha scritto:
I've seen such an error before, but I don't remember what caused the problem. I think CGI returns something else instead of image. If you are lucky it might be an error message. Try to save this object as file and inspect its content.
-- 

TecnoSistemi S.r.l.
Servizi informatici per Aziende e Studi

Orazio Di nino

Viale della Repubblica, 70 c/o Sviluppo Italia - 67039 Sulmona (AQ)
( Tel: 800194055 +39 0864 2508313  +39 0864 578509  7 Fax: +39 0864 2508312


------------------------------------------------------------------------------


_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project:http://backuppc.sourceforge.net/


------------------------------------------------------------------------------


_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/