Skip to content

All certifications

XK0-006 practice question on Compliance, 2026-11-10

Archived question for 2026-11-10. Domain: Security. Objective 3.6: Compliance. Original SecLern question, written for practice.

An administrator searches the audit log for changes to the account database. ``` $ sudo ausearch -k identity-file -ts today ---- time->Wed Nov 12 10:22:14 2026 type=SYSCALL msg=audit(1794565334.211:512): arch=c000003e syscall=257 success=yes exit=3 ppid=2301 pid=2330 auid=1001 uid=0 gid=0 euid=0 comm="vipw" exe="/usr/sbin/vipw" key="identity-file" ``` Which field identifies the login user who ran the command through sudo?

Show the explanation

The audit user ID stays the original login identity after sudo.

Each option

  • A. uid is 0 here because sudo ran the program as root. It would be right for the effective account of the process at start.
  • B. euid is the effective user, which sudo changed to root. It would be right for the privileges in use.
  • C (correct). Correct: The audit user ID stays the original login identity after sudo.
  • D. pid is the process number and not a user. It would be right for the process ID. comm is the command name and not a user. It would be right for the program name.

What this question tests

It maps to XK0-006 objective 3.6, Compliance: Compliance and scanning Related ideas: auditd, ausearch, auid.

The published topics under this objective, so you can check what you have covered:

  • auditd
  • Integrity checks
  • Vulnerability scanning

More from the archive

Start a daily session

Several questions at a time, aimed at your gaps.