[Pkg-nagios-devel] Bug#719698: Fwd: Re: nagvis: Nagvis is unable to create auth.db unless owner of config directory is changed to www-data

Markus Frosch markus at lazyfrosch.de
Fri Dec 13 10:31:59 UTC 2013


-------- Forwarded Message --------
> From: Patrick Köping <patrick.koping at pantor.com>
> To: Markus Frosch <markus at lazyfrosch.de>
> Subject: Re: nagvis: Nagvis is unable to create auth.db unless owner
> of config directory is changed to www-data
> Date: Fri, 13 Dec 2013 10:44:21 +0100
> 
> Hi Markus
> 
> I guess it's actually an upgrade issue. Tried with a fresh install of
> wheezy and got the same result as you, but then I remembered
> that I had done an upgrade earlier.
> 
> A fresh install of squeeze gives this:
> user at debian:~$ ls -la /etc/nagvis/
> total 36
> drwxr-xr-x  5 root     root     4096 Dec 13 10:26 .
> drwxr-xr-x 78 root     root     4096 Dec 13 10:28 ..
> -rw-r--r--  1 root     root      941 Sep 17  2011 apache.conf
> drwxr-xr-x  2 root     root     4096 Dec 13 10:26 gadgets
> drwxrwxr-x  2 www-data www-data 4096 Dec 13 10:26 maps
> -rw-------  1 www-data www-data 8810 Dec 13 10:26 nagvis.ini.php
> drwxr-xr-x  5 root     root     4096 Dec 13 10:25 templates
> 
> Did a dist-upgrade to wheezy and the nagvis directory looks like this:
> user at debian:~$ ls -la /etc/nagvis/
> total 60
> drwxr-xr-x  9 root     root      4096 Dec 13 10:37 .
> drwxr-xr-x 89 root     root      4096 Dec 13 10:39 ..
> -rw-r--r--  1 root     root       941 Sep 17  2011 apache.conf
> drwxr-xr-x  2 www-data www-data  4096 Dec 13 10:41 automaps
> drwxr-xr-x  2 root     root      4096 Feb 20  2013 conf.d
> drwxr-xr-x  2 root     root      4096 Dec 13 10:26 gadgets
> drwxr-xr-x  2 root     root      4096 Dec 13 10:41 geomap
> drwxrwxr-x  2 www-data www-data  4096 Dec 13 10:26 maps
> -rw-rw----  1 root     www-data 16972 Dec 13 10:41 nagvis.ini.php
> drwxr-xr-x  2 www-data www-data  4096 Feb 20  2013 profiles
> drwxr-xr-x  5 root     root      4096 Dec 13 10:25 templates
> 
> I hope this helps.
> 
> 
> On 12/12/2013 11:33 PM, Markus Frosch wrote:
> 
> > Control: tags -1 unreproducible
> > 
> > Hey Patrick,
> > I'm working on adopting the nagvis package and want to clean old bugs.
> > 
> > > After a fresh install of Nagvis in wheezy, the /etc/nagvis directory is 
> > > owned by root.
> > > If you go the the nagvis webinterface on http://<ip>/nagvis, it will 
> > > complain that it can't create the auth.db file.
> > > # chown www-data:www-data /etc/nagvis, solves this. But I'm not sure if 
> > > this is as intended
> > > and if it's a good idea regarding security. Anyhow nagvis doesn't work 
> > > out of the box and it's not an obvious fix.
> > I can't really reproduce the problem.
> > 
> > When installing Nagvis on either Wheezy or Jessie the permissions are
> > correct:
> > 
> > $ ls -al /etc/nagvis/
> > total 56
> > drwxr-xr-x   7 www-data www-data  4096 Dez  12 23:25 .
> > drwxr-xr-x 122 root     root     12288 Dez  12 23:25 ..
> > drwxr-xr-x   2 www-data www-data  4096 Dez  12 23:25 automaps
> > drwxr-xr-x   2 root     root      4096 Feb  20  2013 conf.d
> > drwxr-xr-x   2 root     root      4096 Dez  12 23:25 geomap
> > drwxr-xr-x   2 www-data www-data  4096 Feb  20  2013 maps
> > -rw-rw----   1 root     www-data 16971 Dez  12 23:25 nagvis.ini.php
> > drwxr-xr-x   2 www-data www-data  4096 Feb  20  2013 profiles
> > 
> > 
> > Could you re-test that in your environment?
> > 
> > Btw. Nagvis 1.7 is coming to unstable soon, this bug will unfortunately
> > not be fixed in wheezy.
> > 
> > Cheers
> > Markus
> > 
> 
> 
> -- 
> Vänliga hälsningar / Kind regards,
> Patrick Köping
> 
> Pantor Engineering AB
> Luntmakargatan 26 4tr.
> SE-111 37 Stockholm
> +46 (8) 412 97 54
> pako at pantor.com
> www.pantor.com

-- 
Markus Frosch
markus at lazyfrosch.de
http://www.lazyfrosch.de



More information about the Pkg-nagios-devel mailing list