Interview Prep/Linux/User Lifecycle, Auditing & Time Sync

What should happen in the offboarding process for an engineer with server access?

IntermediateProductionUser Lifecycle, Auditing & Time Sync
Answer
  1. Disable the identity in the central directory/SSO (revokes SSH certificates, VPN, consoles at once).
  2. Remove their public keys from any authorized_keys, and from CI/deploy systems.
  3. Rotate shared secrets they could see (break-glass passwords, API keys, service account keys).
  4. Expire local accounts: usermod -e 1 -L alice, then archive and remove after a retention period.
  5. Reassign file ownership and cron jobs; check for scheduled tasks and running processes (pgrep -u alice).
  6. Record the action for audit.
All Linux questions Roadmap: Linux

More on User Lifecycle, Auditing & Time Sync