Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I configured many servers with the option to make "sudo su" with ldap users, and works fine.

But in 2 servers (CentOS 5.7 and 5.5) this option show me an error:

    [user] is not in the sudoers file.  This incident will be reported.

I can't understand why the configuration don't works.

All the servers have the same configuration, i only add this line

    sudoers_base ou=SUDOers,dc=dominio,dc=root

My sensation is that the server can't ask to SUDOers LDAP.

Somebody can give me an idea? Thanks!

share|improve this question
Version CentOS that this configuration works fine: 5.3,5.4,5.8, etc... – madrikeka May 9 '13 at 13:35
Have you verified that the version of sudo installed on the affected machines was compiled with LDAP support? – voretaq7 May 9 '13 at 15:59
Thanks for the info, review this information! – madrikeka May 10 '13 at 10:24
up vote 1 down vote accepted

I found the solution.

A solution very stupid :D

In this moment, in


Don't appear the next line:

    sudoers:  files ldap

I wrote this line and sudoers works fine.

In my other machines, this options appears automatically.

Thanks for all!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.