linux-users

Parses the /etc/passwd file to retrieve a list of user accounts registered on the Linux system. Returns the name, UID, GID, description, home directory path, and login shell information for each user as structured fields.

Command properties

ItemDescription
Command typeDriver query
Required permissionAdministrator
License usageLicensed command
Parallel executionNot supported
Distributed executionRuns on Data Node (mapper)

Syntax

linux-users

Output fields

FieldTypeDescription
userstringUsername
uidintegerUser ID (UID)
gidintegerPrimary group ID (GID)
descriptionstringUser description (GECOS field)
home_pathstringHome directory path
shellstringLogin shell path (e.g., /bin/bash, /sbin/nologin)

Error codes

Parse errors
Error codeMessageDescription
95040no-read-permissionOccurs when run without administrator privilege
Runtime errors
Error codeMessageDescriptionPost-action
--When the /etc/passwd file cannot be readTerminates query execution

Description

The linux-users command parses each line of the /etc/passwd file using a colon (:) delimiter to extract user account information. It includes both system accounts and regular user accounts.

Examples

  1. Retrieve all user accounts

    linux-users
    

    Retrieves information about all user accounts registered on the system.

  2. Filter users who can log in

    linux-users
    | search shell != "/sbin/nologin" and shell != "/bin/false"
    

    Filters only users whose login shell is neither /sbin/nologin nor /bin/false.

  3. Retrieve regular users by UID

    linux-users
    | search uid >= 1000
    

    Retrieves only regular user accounts with a UID of 1000 or higher.