CentOS7 Upgrade to 5.5.0 affects sudo
Posted: Mon Jul 02, 2018 4:33 pm
I upgraded to 5.5.0 using the standard selection from the Admin page.
It seemed to succeed but had the error at the end of the output:
>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
It seemed that the sudo command was giving the same result from the command line.
[ead@winston MIBS]$ sudo cat /etc/sudoers
>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
My support staff fixed the sudo problem.
I checked the plugins, they were updated.
There is a reference about the problem in Nagios support, https://support.nagios.com/forum/viewto ... 16&t=36630 but it applies to CentOS 5.
So, is it reasonable to think that the upgrade did do everything it was supposed to do?
It seemed to succeed but had the error at the end of the output:
>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
It seemed that the sudo command was giving the same result from the command line.
[ead@winston MIBS]$ sudo cat /etc/sudoers
>>> /etc/sudoers: Alias "NAGIOSXI" already defined near line 112 <<<
>>> /etc/sudoers: Alias "NAGIOSXIWEB" already defined near line 113 <<<
sudo: parse error in /etc/sudoers near line 112
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
My support staff fixed the sudo problem.
I checked the plugins, they were updated.
There is a reference about the problem in Nagios support, https://support.nagios.com/forum/viewto ... 16&t=36630 but it applies to CentOS 5.
So, is it reasonable to think that the upgrade did do everything it was supposed to do?