Integrate nagios users with system ones

Bug #562146 reported by karaluh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nagios3 (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

Binary package hint: nagios3

According to the documentation https://help.ubuntu.com/community/Nagios3 there's aditional postinstalation step required to create user to acces the web interface. Nagios should accept system credentials instead.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nagios3 3.2.0-4ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-20.30-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-20-generic i686
Architecture: i386
Date: Tue Apr 13 10:56:04 2010
ProcEnviron:
 LANGUAGE=pl_PL:pl:en_GB:en
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
SourcePackage: nagios3

Revision history for this message
karaluh (karaluh) wrote :
Mathias Gug (mathiaz)
Changed in nagios3 (Ubuntu):
importance: Undecided → Wishlist
Chuck Short (zulcss)
Changed in nagios3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Jan Wagner (waja) wrote :

Do you guys really think, that using system users would be a good idea? Do you like to login to the nagios webinterface as root?

Revision history for this message
karaluh (karaluh) wrote :

root is disabled by default. The thing that I realy don't like is creating users for every software I use.

Revision history for this message
Jan Wagner (waja) wrote :

Sorry ... using system users within nagios is in my eyes a security problem, but maybe I'm wrong.

Jan, with his debian nagios maintainers hat on.

Revision history for this message
Rhonda D'Vine (rhonda) wrote :

We had a short discussion and Alexander Wirt raised a very important part:

Enabling the webinterface to authenticate against system users would technicly mean that one would have to enable the webserver to read the shadow file. The shadow file is readable only by root on intention and opening that to the www-data user is asking for way more troubles than it would solve.

Please try to understand that this won't happen

Changed in nagios3 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Piotr Skamruk (jell) wrote :

Why www-data would have to read shadow file?
What about using pam modules?
With that - authentication could use not only local user database, but also ldap, or either mechanism...

karaluh - better place to ask about such thinks would be nagios mail list, so you should start looking closer to sources ;)

Revision history for this message
Alexander Wirt (formorer) wrote :

Speaking with my nagios3 maintainer in debian hat on

> Why www-data would have to read shadow file?
> What about using pam modules?
even libpam needs access to the password hashes. Just by using libpam you don't get magically access to them.
Citing from libapache2-mod-auth-pam package:
  To use with standard Debian configuration you have to add "www-data" user to
  "shadow" group. Be careful! It means it can be readable by anyone who can run
  its own CGI script!

> With that - authentication could use not only local user database, but also ldap, or either mechanism...
The bug is talking about default setups and giving www-data access to shadow is really part for nightmares.

So speaking for Debian, this will never happen. And if Ubuntu adds this by default they are are creating a big security problem. In times of rainbow tables password hashes are not really secure.

And looking the nagios sources is stupid. Using apache auth is the most flexible way Nagios can go and I doubt that any of the Nagios devs will change this for Nagios-Core.

Revision history for this message
Piotr Skamruk (jell) wrote :

I was sure that libpam to acces shadow uses some suid helper program.
So i was wrong about it...

Revision history for this message
James Y Knight (foom) wrote :

You want to be using saslauthd and apache's mod-authn-sasl. Then you don't need to give httpd access to /etc/shadow.

Revision history for this message
Alexander Wirt (formorer) wrote :

sure, or you can use LDAP, *SQL or whatever for auth - but there is no sensible default.

Revision history for this message
Philipp Kern (pkern) wrote :

> I was sure that libpam to acces shadow uses some suid helper program.
> So i was wrong about it...

There is a suid helper program in pam_unix, called unix_chkpwd. But for obvious reasons it only allows to check the password of the current user, which is in turn used by programs like gnome-screensaver to verify the password. It does not work for brute-forcing or checking any other user's password.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.