Interview Prep/Linux/Users, groups and access control

You have 200 servers and user accounts are drifting between them. How do you centralise identity?

IntermediateScenarioUsers, groups and access control
Answer

Situation read → Local /etc/passwd management does not scale; move to a directory service.

What I'd do →

  1. Pick a source of truth: FreeIPA, Active Directory, or an LDAP behind your IdP.
  2. Join servers with SSSD (realm join for AD/IPA) and use sssd in /etc/nsswitch.conf for passwd and group.
  3. Store SSH public keys in the directory and serve them via AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys.
  4. Control who may log in per host group with HBAC rules or simple_allow_groups.
  5. Keep one local break-glass admin per server.

Why → One place to add, remove and audit users; offboarding becomes a single disable.

Interview tip → Mention SSSD caching so logins still work if the directory is briefly unreachable.

All Linux questions Roadmap: Linux

More on Users, groups and access control