How would you design user and access management for a 500-server fleet with no shared passwords and fast offboarding?
AdvancedScenarioUsers, groups and access control
Answer
Situation read → Scale, auditability and instant revocation.
What I'd do →
- Identity from the IdP (Okta/Entra) synced to FreeIPA/AD or used directly by an access proxy.
- SSH with short-lived certificates (Vault SSH CA, Teleport, or
step-ca): servers trustTrustedUserCAKeys, certs last 8 hours. - Role-based principals mapped to sudo rules (
AuthorizedPrincipalsFile). - All access through a bastion or proxy with session recording.
- Only one break-glass local account, vaulted.
Why → Disable the user in the IdP and they lose access everywhere within hours, with no key cleanup.
Interview tip → Contrast it with authorized_keys sprawl, which is the failure mode most companies are trying to escape.
More on Users, groups and access control
You need to onboard 50 new developers onto a shared build server, each with their own account and SSH key. How do you do it?BeginnerThree teams share one server and each needs a project directory only its members can write to, with new files staying group-owned. How do you set it up?BeginnerA junior engineer needs to restart nginx but must not get full root. How do you grant that?BeginnerAn engineer leaves the company today. What do you do with their Linux account on 30 servers?BeginnerA service account for a backup tool must exist on every server but nobody should be able to log in as it. How do you create it?BeginnerYour security team requires passwords to expire every 90 days for human users only. How do you implement it?Beginner