1 \section{\module{pwd
} ---
4 \declaremodule{builtin
}{pwd
}
6 \modulesynopsis{The password database (
\function{getpwnam()
} and friends).
}
8 This module provides access to the
\UNIX{} password database.
9 It is available on all
\UNIX{} versions.
11 Password database entries are reported as
7-tuples containing the
12 following items from the password database (see
\code{<pwd.h>
}), in order:
20 The uid and gid items are integers, all others are strings.
21 \exception{KeyError
} is raised if the entry asked for cannot be found.
23 It defines the following items:
25 \begin{funcdesc
}{getpwuid
}{uid
}
26 Return the password database entry for the given numeric user ID.
29 \begin{funcdesc
}{getpwnam
}{name
}
30 Return the password database entry for the given user name.
33 \begin{funcdesc
}{getpwall
}{}
34 Return a list of all available password database entries, in arbitrary order.