[Pkg-nagios-devel] Unable to install with LDAP nagios user

Marc Haber mh+pkg-nagios-devel at zugschlus.de
Sun Jul 29 14:26:26 UTC 2007


On Sat, Jul 28, 2007 at 01:28:17AM +0200, sean finney wrote:
> On Friday 27 July 2007 03:24:16 pm Chris Wilson wrote:
> > We have an LDAP server which has a nagios user on it, to ensure uid
> > consistency across hosts. We therefore cannot install the
> > nagios-nrpe-server package, because the user exists and is not in
> > /etc/passwd:
> >
> > $ sudo aptitude install nagios-nrpe-server
> > ...
> > Writing extended state information... Done
> > (Reading database ... 23921 files and directories currently installed.)
> > Unpacking nagios-nrpe-server (from .../nagios-nrpe-server_2.0-9_i386.deb)
> > ...
> > addgroup: The group `nagios' already exists and is not a system group.
> > usermod: nagios not found in /etc/passwd
> 
> okay, i'd say that's definitely a bug in nagios-nrpe-server then... it should 
> check for the user/group before blindly trying to add it, and it should use 
> the output of something like getent instead of checking /etc/passwd (not sure 
> what it's doing there).

Actually, it should not try to be smarter than adduser, but simply
call adduser and let adduser take care about this situation. I do not
have an idea why there is uid/gid magic in the preinst, it doesn't
belong there.

Btw, this is exactly the situation that caused me to strongly argue for
a non-conflicting user name such as Debian-nagios, to avoid conflicts
with local account naming policies.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190



More information about the Pkg-nagios-devel mailing list