Interview Prep/Linux/Security, hardening and incident response

Your organisation must ensure that root's login and every privileged command is attributable. What design do you propose?

IntermediateScenarioSecurity, hardening and incident response
Answer

Situation read → No direct root logins; personal accounts plus sudo plus audit.

What I'd do →

  1. PermitRootLogin no, root password locked or vaulted.
  2. Personal accounts from central identity; sudo via groups.
  3. Defaults log_output and auditd rules on execve with auid>=1000.
  4. pam_loginuid so the auid survives sudo su.
  5. Forward everything to a SIEM with immutable storage.

Why → Every root action maps back to a human.

Interview tip → Mention that auid is set at login and can't be changed by the user afterwards.

All Linux questions Roadmap: Linux

More on Security, hardening and incident response