dispuid Command

Purpose

Displays a list of all valid user names.

Syntax

dispuid

Description

This command can be used to display a list of all user names on the system (one line per name). There are no parameters for this command. The following files are accessed in read-only mode to retrieve the user data:
  • /etc/passwd
  • /etc/security/user
  • /etc/security/user.roles
  • /etc/security/limits
  • /etc/security/environ
  • /etc/group
  • /etc/group

Exit Status

0
The command completed successfully.
>0
An error occurred.

Examples

  1. To list all the valid users in your machine enter the dispuid command as follows:
    dispuid
    The output looks similar to the following:
    root 
    daemon 
    bin 
    sys 
    adm 
    uucp 
    guest 
    nobody 
    lpd 
    invscout 
    imnadm 
    user1

Files

Item Description
/usr/sbin/dispuid Contains the dispuid command.
/etc/passwd Contains password information.