[Pkg-nagios-devel] Bug#479051: Bug#479051: nagios3: wrong home directory for the nagios user

Alexander Wirt formorer at debian.org
Sun May 4 16:50:13 UTC 2008


reassign 479051 nagios-nrpe
thanks

Stephane Chazelas schrieb am Sunday, den 04. May 2008:

> 2008-05-04 12:41:31 +0200, Alexander Wirt:
> > tag 479051 moreinfo
> > thanks
> > 
> > Stephane Chazelas schrieb am Friday, den 02. May 2008:
> > 
> > > Package: nagios3
> > > Version: 3.0.1-1
> > > Severity: normal
> > > 
> > > 
> > > The nagios user is being added by
> > > /usr/sbin/useradd -r -d /var/log/nagios -s /bin/sh -c "%{nsusr}" %{nsusr}
> > Ehm, ists not. Its added via 
> > adduser --system --group --home /var/run/nagios3 --no-create-home \
> >               --disabled-login --force-badname nagios > /dev/null
> > 
> > from nagio3-common. There is no call of useradd from nagios3. 
> > /var/run/nagios3 exists. (Its still questionable it its the right home
> > directory. But it exists. 
> [...]
> 
> Hi Alexander,
> 
> the thing is that the user here was created with a home
> directory of /var/log/nagios, so I did a grep -r on the source
> package and found the line above in the nagios.spec file.
nagios.spec? Debian don't uses spec files. 

> 
> I can see now that line you quote in
> ./debian/nagios3-common.postinst
> 
> So it seems the culprit is nagios-nrpe-server:
> /var/lib/dpkg/info/nagios-nrpe-server.preinst:          adduser
> --system --group --no-create-home --home /var/log/nagios --quiet
> nagios
Which is not nagios3. I reassigned the bug to nagios-nrpe. 


> I don't think /var/run/nagios3 is a good choice for a home
> directory. /var/run is meant to be non-permanent, and a home
> directory is meant to be the area where to *store* information
> relevant to a user
As I said its questionable and will propably changed to /var/lib/nagios3 in
the near future. 

Alex






More information about the Pkg-nagios-devel mailing list