mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
a105924804
1. Example queries will run with an (optional) integration test. 2. Fix bad accesses with OS X package BOMs 3. Move spec files from ./osquery/tables/specs to ./specs 4. Remove server parsers (netlib) from client builds.
19 lines
721 B
Plaintext
19 lines
721 B
Plaintext
table_name("users")
|
|
description("Local system users.")
|
|
schema([
|
|
Column("uid", BIGINT, "User ID"),
|
|
Column("gid", BIGINT, "Group ID (unsigned)"),
|
|
Column("uid_signed", BIGINT, "User ID as int64 signed (Apple)"),
|
|
Column("gid_signed", BIGINT, "Default group ID as int64 signed (Apple)"),
|
|
Column("username", TEXT),
|
|
Column("description", TEXT, "Optional user description"),
|
|
Column("directory", TEXT, "User's home directory"),
|
|
Column("shell", TEXT, "User's configured default shell"),
|
|
])
|
|
implementation("users@genUsers")
|
|
examples([
|
|
"select * from users where uid = 1000",
|
|
"select * from users where username = 'root'",
|
|
"select count(*) from users u, user_groups ug where u.uid = ug.uid",
|
|
])
|