osquery-1/specs/users.table

20 lines
794 B
Plaintext
Raw Normal View History

2014-10-09 19:50:34 +00:00
table_name("users")
description("Local system users.")
2014-10-09 19:50:34 +00:00
schema([
Column("uid", BIGINT, "User ID", index=True),
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, "Username"),
Column("description", TEXT, "Optional user description"),
Column("directory", TEXT, "User's home directory"),
Column("shell", TEXT, "User's configured default shell"),
Column("uuid", TEXT, "User's UUID (Apple)"),
2014-10-09 19:50:34 +00:00
])
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",
])