Page 3 of 3

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Posted: Mon Sep 14, 2015 9:06 am
by tgriep
Can you run the following and post back the results?

Code: Select all

which sudo
ls -l /usr/bin/sudo
ls -l /usr/local/nagios
chage -l nagios
grep nag /etc/passwd
grep nag /etc/group

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Posted: Mon Sep 14, 2015 10:52 am
by gormank

Code: Select all

[root@txslm2mlnag001 ~]# which sudo
/usr/bin/sudo
[root@txslm2mlnag001 ~]# ls -l /usr/bin/sudo
---s--x--x. 1 root root 123832 Jul 31  2014 /usr/bin/sudo
[root@txslm2mlnag001 ~]# ls -l /usr/local/nagios
total 40
drwxrwxr-x.  2 nagios nagios  4096 Mar  6  2015 bin
drwsrwsr-x.  8 apache nagios  4096 Sep 11 21:55 etc
drwxr-xr-x.  2 root   root    4096 Mar  6  2015 include
drwxrwxr-x.  2 nagios nagios 12288 Sep 10 22:50 libexec
drwxrwxr-x.  2 nagios nagios  4096 Mar  6  2015 sbin
drwxrwxr-x. 14 nagios nagios  4096 Mar  6  2015 share
drwxrwxr-x.  6 nagios nagios  4096 Sep 14 15:51 var
drwxr-xr-x   3 root   root    4096 Jul 16 19:46 windows
[root@txslm2mlnag001 ~]# chage -l nagios
Last password change                                    : Mar 06, 2015
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 99999
Number of days of warning before password expires       : 7
[root@txslm2mlnag001 ~]# grep nag /etc/passwd
nagios:x:500:100::/home/nagios:/bin/bash
[root@txslm2mlnag001 ~]# grep nag /etc/group
nagios:x:500:nagios,apache,snmptt
nagcmd:x:501:nagios,apache,snmptt

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Posted: Mon Sep 14, 2015 2:03 pm
by tmcdonald
We'll pick this up in the ticket for now.

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Posted: Tue Sep 15, 2015 3:57 pm
by gormank
A few minutes ago they updated sudo to 1.8.14-4.el5 from -3 I think and its all happy again...
This can be closed.

Re: Sudo updated and now sudo scripts fail: NRPE: Unable to

Posted: Tue Sep 15, 2015 4:03 pm
by tmcdonald
Glad to hear it! I'll close this and the ticket up.