General-Purpose Mail Filter
Look for the user name (
getpwnam) or user ID uid
getpwuid) in the system password database and return the
corresponding record, if found. If not found, raise the
The returned record consists of six fields, separated by colon sign:
getpwnam("gray") ⇒ "gray:x:1000:1000:Sergey Poznyakoff:/home/gray:/bin/bash"
Following two functions can be used to test for existence of a key in the user database:
Return ‘true’ if name (or uid) is found in the system user database.
This document was generated on January 3, 2019 using makeinfo.Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.