Subject: query regarding getpwnam() function
To: None <netbsd-help@NetBSD.org>
From: Krishna Murthy <krishna.kn@ap.sony.com>
List: netbsd-help
Date: 02/19/2004 13:16:41
Hi,
The getpwnam() function in NetBSD1.6 refers files or dns or nis or compat
data bases depending on the order of these databases in
/etc/nsswitch.conf to provide the functionality of getpwnam()
To support files data base, NetBSD provides the nsdispatch() and
__local_getpw() call back function, which internally calls dbopen() function
.
The dbopen() function tries to open /etc/pw.db file.
1. Can you please specify why /etc/pw.db file is refered, eventhough
/etc/passwd file is present
2. How to generate /etc/pw.db file
Any pointers on this will be of great help
Thanks and regards
krishna