Interview Prep/Linux/Users, groups and access control

You need a shared admin account for an emergency, but auditors forbid shared passwords. What do you set up?

AdvancedScenarioUsers, groups and access control
Answer

Situation read → Break-glass access that is controlled and audited.

What I'd do →

  1. Create one local breakglass user per server with a long random password stored in a vault (HashiCorp Vault, 1Password) that requires approval to check out.
  2. Rotate the password automatically after every checkout.
  3. Disable its SSH key login; allow console or a dedicated bastion only.
  4. Alert on any login: an auditd rule or a PAM pam_exec hook that notifies the SIEM.
  5. Test it quarterly.

Why → You still have a way in when LDAP/SSO is down, while every use is traceable to a person.

Interview tip → Mention that SSH certificates with short TTLs from Vault are a modern alternative.

All Linux questions Roadmap: Linux

More on Users, groups and access control