Correction, seems to be broken in 5.6 as well...I also had this interesting argument with sudo...<div><br></div><div><div># visudo -c -f /etc/sudoers.d/zabbix-puppet</div><div>>>> /etc/sudoers.d/zabbix-puppet: syntax error near line 0 <<<</div>
<div>parse error in /etc/sudoers.d/zabbix-puppet near line 0</div><div><br></div><div>(((NOTE: I made absolutely no changes , just did ":q")))</div><div># visudo -f /etc/sudoers.d/zabbix-puppet</div><div>>>> /etc/sudoers.d/zabbix-puppet: syntax error near line 0 <<<</div>
<div><br></div><div><br></div><div># visudo -c -f /etc/sudoers.d/zabbix-puppet</div><div>/etc/sudoers.d/zabbix-puppet: parsed OK</div></div><div><br></div><div><br></div><div>:-/</div><div><br></div><div>- Trey</div><div>
<br><br><div class="gmail_quote">On Mon, Jul 25, 2011 at 6:41 PM, Trey Dockendorf <span dir="ltr"><<a href="mailto:treydock@gmail.com">treydock@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am unable to get the #includedir function to work with sudo. This works just fine on all my CentOS 5.6 servers, but on 6 it is being ignored. I have this line in the file /etc/sudoers.d/zabbix-puppet<div><br></div><div>
zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet</div><div><br></div><div>However sudo still requires a password. If I put that same line into /etc/sudoers file , there is no password prompt. At the end of my sudoers file I have this line</div>
<div><br></div><div>#includedir "/etc/sudoers.d"</div><div><br></div><div>It seems that line is being ignored.</div><div><br></div><div>The permissions on the file in that directory are 0440.</div><div><br></div>
<div>Any ideas would be greatly appreciated.</div><div><br></div><div>Thanks</div><div>- Trey</div>
</blockquote></div><br></div>