improve treatment of multi-line replies, ignore empty lines
[python/dscho.git] / Doc / libpwd.tex
blob7bb30d80e27f892748b75c72b9047b0059f6af8f
1 \section{Built-in Module \sectcode{pwd}}
3 \bimodindex{pwd}
4 This module provides access to the \UNIX{} password database.
5 It is available on all \UNIX{} versions.
7 Password database entries are reported as 7-tuples containing the
8 following items from the password database (see \file{<pwd.h>}), in order:
9 \code{pw_name},
10 \code{pw_passwd},
11 \code{pw_uid},
12 \code{pw_gid},
13 \code{pw_gecos},
14 \code{pw_dir},
15 \code{pw_shell}.
16 The uid and gid items are integers, all others are strings.
17 An exception is raised if the entry asked for cannot be found.
19 It defines the following items:
21 \renewcommand{\indexsubitem}{(in module pwd)}
22 \begin{funcdesc}{getpwuid}{uid}
23 Return the password database entry for the given numeric user ID.
24 \end{funcdesc}
26 \begin{funcdesc}{getpwnam}{name}
27 Return the password database entry for the given user name.
28 \end{funcdesc}
30 \begin{funcdesc}{getpwall}{}
31 Return a list of all available password database entries, in arbitrary order.
32 \end{funcdesc}