Getent

Getent

getent is a unix command that helps a user get entries in a number of important text files called databases. This includes the passwd and group databases which store user information - hence getent is a common way to look up user details on Unix. Since getent uses the same name service as the system, getent will show all information, including that gained from network information sources such as LDAP.

The databases it searches in are: passwd, group, hosts, services, protocols, or networks.

The general syntax is: getent database [key ...]

Thorsten Kukuk wrote the "getent" utility for the GNU C library

Examples

Fetch list of user accounts on a Unix system (stored in a database called 'passwd'). This will show all user accounts, regardless of the type of name service used. For example, if both local and LDAP name service are used for user accounts, the results will include all local and LDAP users:

getent passwd

Fetch details for a particular user called joe:

getent passwd joe

Fetch list of group accounts on a Unix system (stored in a database called 'group')

getent group

External links

* [http://www.linuxmanpages.com/man1/getent.1.php] The program's manpage


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Passwd (database) — passwd is a name service database used to store user account information on Unix like operating systems.The sources for the passwd database (and hence the sources of user accounts on a system) are configured, like other name service databases, in …   Wikipedia

  • Group (database) — group is a name service database used to store group information on Unix like operating systems.The sources for the group database (and hence the sources for groups on a system) are configured, like other name service databases, in nsswitch.conf …   Wikipedia

  • Directory service — A directory service is the software system that stores, organizes and provides access to information in a directory. In software engineering, a directory is a map between names and values. It allows the lookup of values given a name, similar to a …   Wikipedia

  • Name Service Switch — The Name Service Switch (NSS) is a facility in Unix like operating systems that provides a variety of sources for common configuration databases and name resolution mechanisms. Such source databases include local operating system files, for… …   Wikipedia

  • Passwd (file) — The /etc/passwd file is a configuration file used to hold local user data on Unix like operating systems. It has world readable permissions, allowing its contents to be used for name service. The file is named as it originally contained passwords …   Wikipedia

  • Liste des membres du Conseil des Représentants des Peuples (Éthiopie) — Éthiopie Cet article fait partie de la série sur la politique de l Éthiopie, sous série sur la politique …   Wikipédia en Français

  • Glibc — No debe confundirse con GLib. GNU C Library Desarrollador Proyecto GNU …   Wikipedia Español

  • EAU — L’EAU a toujours hanté l’esprit des hommes. Des différents symboles qu’elle suggère, le plus perceptible est celui du mouvement et de la vie: les sources, les eaux courantes, les vagues sont déjà des objets offerts à une vision animiste du monde …   Encyclopédie Universelle

  • carme — [ karm ] n. m. • 1220; du mont Carmel en Palestine ♦ Religieux de l ordre de Notre Dame du Mont Carmel. Carmes réformés. Carmes déchaux. Carmes et carmélites. Eau des Carmes, nom d une eau de mélisse. ● carme nom masculin (du mont Carmel )… …   Encyclopédie Universelle

  • ni — [ ni ] conj. • 1229; ne 842; lat. nec ♦ Conjonction négative, niant et et ou, et servant à unir en les distinguant des parties du discours, des membres de phrase ou des propositions. I ♦ Niavec une autre négation. 1 ♦ Joignant deux ou plusieurs… …   Encyclopédie Universelle

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”