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 →
PermitRootLogin no, root password locked or vaulted.- Personal accounts from central identity; sudo via groups.
Defaults log_outputand auditd rules onexecvewithauid>=1000.pam_loginuidso the auid survivessudo su.- 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.
More on Security, hardening and incident response
Monitoring shows a web server making outbound connections to an unknown IP on port 4444 at 2 AM. You suspect it is compromised. What do you do?AdvancedAfter the compromise you need to find how the attacker got in. Where do you look?AdvancedYour CISO asks you to harden a fresh Linux server baseline. What's on your list?IntermediateA developer says "SELinux keeps breaking my app, can we just disable it?" How do you respond and what do you do?IntermediateYou need to know when anyone modifies `/etc/sudoers`, `/etc/passwd` or SSH config. How?IntermediateA critical OpenSSL CVE is announced. How do you find and patch affected servers quickly?Intermediate