userdbctl

Query systemd user and group database

TLDR

List all users
$ userdbctl user
Show specific user
$ userdbctl user [username]
List all groups
$ userdbctl group
Show specific group
$ userdbctl group [groupname]
List services providing definitions
$ userdbctl services

SYNOPSIS

userdbctl [OPTIONS] COMMAND [NAME]

DESCRIPTION

userdbctl inspects users, groups, and group memberships on the system. It provides a unified interface to query user and group information from various sources including /etc/passwd, LDAP, and systemd-homed.The tool aggregates information from all services registered with systemd-userdbd.

COMMANDS

user [NAME]

List users or show specific user
group [NAME]
List groups or show specific group
services
List services providing user/group definitions

INSTALL

sudo apt install systemd-userdbd

CAVEATS

Systemd-based systems only. Output format differs from traditional getent. Some sources may require additional services running.

SEE ALSO

getent(1), id(1), homectl(1)