[Pkg-nagios-devel] Bug#479051: Bug#479051: nagios3: wrong home directory for the nagios user
Stephane Chazelas
stephane at artesyncp.com
Sun May 4 12:00:27 UTC 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.
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
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
Best regards,
Stephane
More information about the Pkg-nagios-devel
mailing list