Permissions problem

Phil Dobbin phildobbin at gmail.com
Sun Apr 1 13:09:52 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/04/2012 11:52, Giorgio Zarrelli wrote:

> as user root you can su to any other user without being requested for any
> passwords.
> 
> Anyway, if the nagios user has no valid shells in /etc/passwd, you won't
> be able to su to it even though you are root.
> 
> Check the /etc/passwd, it's format is:
> 
> 
> user:1020:1025:,,,:/home/user:/bin/bash
> 
> Look for user nagios and look and check for the last field, if it's
> anything else thane /bin/bash or /bin/sh, change to one of these values.
> 
> Then, try to su to nagios again.

Hi, Giorgio.

That worked. It was set at /bin/false

Thank you,

Cheers,

  Phil...

> <quota chi="Phil Dobbin">
> Hi, all.
> 
> I've just installed Nagios 3.2.1-2 on GNU/Linux Debian Squeeze 6.0.4 &
> it's running fine but I have a permissions problem when trying to
> authenticate as the `nagios` user in order in the first instance to read
> the docs on the web interface (I get a 403).
> 
> I've tried su'ing to root then su'ing to nagios but no luck as I've no
> idea what nagio's password is (I set the nagiosadmin password during
> installation & that works fine for the web interface but for nothing
> else).
> 
> The only thing I can think of is chown'ing nagios's group to root but am
> wary of the consequences.


- -- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	Wm. Shakespeare - Much Ado About Nothing
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPeDd8AAoJEKpMeDHWT5AD9qYH/A6NBzDicN2vlzfqaqdEyd3E
EQpPKsIM3JggWRArq8Bk0CFdQWsHpD2MtzHqckwCI+tSh1Tc/xku4w+aAXR8X+bq
Ul4/Ka+nSNhc+2nvhtnWe09BInM+WZQQBS4DKqTLtf9nyMggId8NVEuLpyCNyBGG
ALGGGK7DBb+rmwoMSE6oRe2psLPsQP6XWH97oJKSI8wVND9zMVcP4450GKPOP0w1
W5pPDt0W9QIuTeNXWkRnqYB7qTYDtH5a5ajMuEXMShb6IEB2Vy3XmZlisfLtgx1w
XveebcyCFQoseKBj2KGBD5rIWpavYTc25Vb6UgG9K9zUDgdnFyaDn14ZBZ0153Q=
=/d6/
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list