x-pack/osquerybeat/ext/osquery-extension/docs/tables/elastic_host_users.md
% This file is generated! See ext/osquery-extension/cmd/gentables.
Host system user account information from /etc/passwd (e.g. when running in a container with hostfs mounted)
Query user account information from the host system's /etc/passwd file when running in a container. Reads from the path given by hostfs (default /hostfs); set ELASTIC_OSQUERY_HOSTFS to override. Use for container security auditing, host user inventory, and compliance checks.
| Column | Type | Description |
|---|---|---|
uid | BIGINT | User ID (unsigned) |
gid | BIGINT | Default group ID (unsigned) |
uid_signed | BIGINT | User ID as int64 signed (for Apple systems) |
gid_signed | BIGINT | Default group ID as int64 signed (for Apple systems) |
username | TEXT | Username / login name |
description | TEXT | Optional user description / full name (GECOS field) |
directory | TEXT | User's home directory path |
shell | TEXT | User's configured default shell |
uuid | TEXT | User's UUID (Apple) or SID (Windows); typically empty on Linux |
SELECT * FROM elastic_host_users;
SELECT * FROM elastic_host_users WHERE username = 'root';
SELECT * FROM elastic_host_users WHERE uid = 1000;
SELECT username, uid, shell, directory FROM elastic_host_users WHERE uid < 1000 ORDER BY uid;
elastic_host_groupsusers