Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getgrnam(3C)

getpwnam(3C)

group(4)

passwd(4)

getent(1M)

NAME

getent − get entries from administrative database

SYNOPSIS

/usr/bin/getent database [ entryname... ]

DESCRIPTION

getent gets a list of entries from the administrative database specified by database. The information comes from the same combination of the /etc files and Network Information Services used by the system library calls. 

At present, getent can retrieve data from the passwd and group databases.  For these databases, it is a command equivalent of the getpwnam(3C) and getgrnam(3C) library routines. 

By default, getent prints out the database entries that match the supplied names, one per line, in the format of the matching administrative file: passwd(4), or group(4). 

database is the name of the database to be examined.  This can be passwd to examine the password database, or group to examine the group database. 

entryname is a list of entry names to be looked up in the password database.  If no entry name is given, all entries are printed. 

ERRORS

getent exits with one of the following values:

0 Successful completion of the task. 

1 Command syntax incorrect, invalid option used, or internal error occurred. 

2 At least one of the specified entry names was not found in the database. 

FILES

/etc/passwd

/etc/group

SEE ALSO

getgrnam(3C), getpwnam(3C), group(4), passwd(4)

Sun Microsystems  —  Last change: 21 Mar 1991

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026