[CentOS] Sudo #includedir function ignored CentOS 6

Tue Jul 26 00:12:08 UTC 2011
John R Pierce <pierce at hogranch.com>

On 07/25/11 4:41 PM, Trey Dockendorf wrote:
> 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
>
> zabbix ALL=NOPASSWD: /var/lib/zabbix/bin/start_puppet
>
> 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
>
> #includedir "/etc/sudoers.d"
>

did you edit these files with visudo -f /path/to/file ?   I'd try that.


-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast