LinuxCommandLibrary

userdbctl

Query systemd user and group database

TLDR

TLDR

List all users

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

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

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community