Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this section, we look at library functions that permit us to retrieve individual records from the password, shadow password, and group files, and to scan all of the records in each of these files.
The getpwnam() and getpwuid() functions retrieve records from the password file.