Permissions problem

Giorgio Zarrelli zarrelli at linux.it
Sun Apr 1 12:52:34 CEST 2012


Hi,

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.

Giorgio


<quota chi="Phil Dobbin">
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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.
>
> Any help appreciated.
>
> Cheers,
>
>   Phil...
>
> - --
> 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/
>
> iQEcBAEBAgAGBQJPeCtoAAoJEKpMeDHWT5ADhy0IALAYm4/lX5wLTxhVr7O6WQdk
> m25suWLCg/0+D5zGpO6x1dqL9yTqJrVSDtfbN7yeznLi9GAv/fRr1xo7ihP48Je9
> eGfckD72pGgALos0epM4Qr2brPU3pyoZTawpg1GUnCmjR7chROGJujKsMWIEzOPZ
> jRKwi61Etl0qVloanX/4ExzRQ9yQ3udi2T/Rh2c1fRtB6QjL3qI6OZZ7aSw6/bKI
> uyrCSsMar2D3OzqXZRhLpMmBhhfVgRBKpNdGK/vJSBVel93R/b6BDek0L52Q7ozu
> 1Uc2HkZgdkfTFTj8do7z8VpeRNZwnzl0rohalaZTqqa3CPIsZkJFLjnAimHkzDU=
> =Hn9p
> -----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
>


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