Passwd (database)

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 nsswitch.conf.

Command line

The getent command can be used to fetch passwd information.

Fetching a list of all available users

getent passwd

Fetching a specific user entry

For a specific user called 'joe':

getent passwd joe

Python

The 'pwd' module can be used. [http://docs.python.org/lib/module-pwd.html]

References


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Passwd — may refer to:* passwd (command), tool used for changing passwords on Unix and Unix like operating systems. * passwd (database), the source of user information on Unix and Unix like operating systems. * passwd (file), one way to store user… …   Wikipedia

  • Passwd (command) — passwd is a tool on most Unix and Unix like operating systems used to change a user s password. The passwd entered by the user is run through a key derivation function to create a hashed version of the new password, which is saved. Only the… …   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

  • Flat file database — A flat file database describes any of various means to encode a data model (most commonly a table) as a plain text file. Flat filesA flat file is a plain text file which usually contains one record per line. [Citation last = Fowler first = Glenn… …   Wikipedia

  • Comparison of database access — Programming language comparisons General comparison Basic syntax Basic instructions Arrays Associative arrays String operations …   Wikipedia

  • Shadow password — In computing, Unix like operating systems use the shadow password database mechanism to increase the security level of passwords by preventing ordinary users from accessing encrypted password data.Unshadowed passwords On a system without shadowed …   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

  • Name Service Switch — El Name Service Switch o NSS provee una interfaz para configurar y acceder a diferentes bases de datos de cuentas de usuarios y claves como /etc/passwd, /etc/group, /etc/hosts, LDAP, etc. Contenido 1 nsswitch.conf 2 NSS y Biblioteca estándar C 3… …   Wikipedia Español

  • 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… …   Wikipedia

  • OpenLDAP — Software Developer(s) The OpenLDAP Project Stable release 2.4.26 / June 30, 2011; 4 months ago (2011 06 30) …   Wikipedia

Share the article and excerpts

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