LinuxCommandLibrary

lid

displays a user's groups or a group's users

TLDR

List groups for a user

$ sudo lid username
copy
List users in a group
$ sudo lid --group groupname
copy

SYNOPSIS

lid [options] [name]

DESCRIPTION

lid displays a user's groups or a group's users. It reads from the system's user and group databases to show membership information.

PARAMETERS

-g, --group

Treat the argument as a group name and list its members
name
User or group name to query (user by default)

CAVEATS

Requires root privileges to access all group membership information. Without arguments, shows groups for the current user.

HISTORY

lid is part of the libuser library tools, providing user and group account management utilities.

SEE ALSO

groups(1), id(1), getent(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community