sudo-ldap modifies nsswitch.conf from sss to ldap
Asked by
Mario Mech
Our systems (server ubuntu 20.04, clients 22.04) are configured to get the sudoers directives from ldap with the help sssd. This works pretty well with having
sudoers: files sss
in /etc/nsswitch.conf. Whenever sudo-ldap is updated it gets changed to
sudoers: files ldap
This happens with the postinst script (line 25-28), where the line (sudoers: files ldap) is added. Unfortunately, I did not find where the old line containing the correct entries gets removed, which is the origin of the configuration trouble.
Is there a way to prevent that the update procedure changes /etc/nsswitch.conf?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu sudo Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mario Mech
- Solved:
- Last query:
- Last reply:
To post a message you must log in.