LOGBOOK

HELP

Quiz Entry - updated: 2026.10.13

How does a Linux client pick up sudo rules from Active Directory?

Install libsss-sudo, make sure /etc/nsswitch.conf has sudoers: files sss, and let SSSD's sudo responder fetch and cache the rules.

sudo reads the local sudoers file first, then the AD rules cached by SSSD

* sudo checks local rules first, then the AD sudoRole objects that SSSD fetches and caches. *

  1. libsss-sudo lets sudo ask SSSD for rules.
  2. sudoers: files sss in /etc/nsswitch.conf makes sudo read the local /etc/sudoers first and then the rules SSSD gets from AD. Both apply.
  3. The SSSD sudo service fetches and caches the rules. On systemd hosts it is started on demand through sssd-sudo.socket, otherwise sudo is added to services in sssd.conf. The cache means sudo still works when AD is unreachable.
  4. Rules are refreshed periodically. sss_cache -E (or --sudo-rules) clears the cache so a new rule takes effect at once.

To check: log in as a web developer and run sudo -l. It lists exactly the commands this user may run with sudo on this host.

Go deeper:

From Quiz: ISLAB / Access Management on Linux | Updated: Oct 13, 2026