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

sean finney seanius at debian.org
Sat Aug 18 18:06:00 UTC 2007


hi guys,

back from vacation and looking a little closer at this one...

On Sunday 29 July 2007 07:26:26 am Marc Haber wrote:
> On Sat, Jul 28, 2007 at 01:28:17AM +0200, sean finney wrote:
> > > $ 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

what's happening is in the pre-installation script, it checks to see if the 
user exists using id(1), which is probably the right thing.  if the user 
exists, but its primary group is not set to nagios, then it attempts to fix 
this by calling usermod.  however, usermod only supports users 
in /etc/password, which is what the cause of the problem is.

> 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.

i think this code pre-dates my maintenance of the package...  so you recommend 
that we replace it with "adduser --system --group nagios", and remove the 
usermod stuff and extra logic?

> 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.

well if we had the user named Debian-nagios, and they had that in LDAP, i 
think it would be the same problem, no?



	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20070818/f9524534/attachment.pgp 


More information about the Pkg-nagios-devel mailing list