auid
The audit user ID: the ID of the person who originally logged in, which stays the same even after they switch user or use sudo.
In more detail
An auditd record with uid=0 and auid=1001 means user 1001 logged in and is now acting as root. That is how you name the human behind a sudo command. Daemons started at boot have an unset auid (4294967295).
Related terms
- auditd — The Linux audit daemon, which records kernel events such as system calls and file changes according to audit rules.
- UID and GID — The numbers Linux uses to identify a user (UID) and a group (GID); root is UID 0.
- sudo — A command that runs another command with administrator (root) rights after checking you are allowed to.
Taught in
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Who Wrote That Sudoers File? The Journal, rsyslog, logrotate And auditd — CompTIA Linux+ (XK0-006) Exam Prep