pwget(1)pwget(1)NAME
pwget, grget - get password and group information
SYNOPSIS
name | uid]
name | gid]
DESCRIPTION
and locate and display information from and
The standard output of contains lines of colon-separated password
information whose format is the same as that used in the file (see
passwd(4)).
The standard output of contains lines of colon-separated group informa‐
tion whose format is the same as that used in the file (see group(4)).
With no options, and get all entries with or respectively, (see getp‐
went(3C) and getgrent(3C)), and output a line for each entry found.
Options
When an option is given, only a single entry is printed.
The options for are:
Output the first entry that matches
name using (see getpwent(3C)).
Output the first entry that matches
uid using (see getpwent(3C)).
The options for are:
Output the first entry that matches
name using (see getgrent(3C)).
Output the first entry that matches
gid using (see getgrent(3C)).
NETWORKING FEATURES
NFS
If Network Information System (NIS) is in use, these commands provide
password and group information based on the NIS version of the password
and group databases in addition to the local password and group files.
RETURN VALUE
These commands return upon success, when a specific search fails, and
upon error.
DEPENDENCIES
NFS:
WARNING: If the Network Information System network database is in use
and the NIS client daemon is not bound to a NIS server daemon (see
ypserv(1M)), these utilities will wait until such a binding is estab‐
lished. These commands can be terminated in this condition by sending
a signal to the process (see kill(1)).
See ypmatch(1), and ypserv(1M).
AUTHOR
and were developed by HP.
FILES
local group data file
local password data file
SEE ALSOgetgrent(3C), getpwent(3C), group(4), passwd(4).
pwget(1)