Print this page
3243 Add shadow support to getent(1)

*** 19,32 **** by \fIdatabase\fR. The information generally comes from one or more of the sources that are specified for the \fIdatabase\fR in \fB/etc/nsswitch.conf\fR. .sp .LP \fIdatabase\fR is the name of the database to be examined. This can be ! \fBpasswd\fR, \fBgroup\fR, \fBhosts\fR, \fBipnodes\fR, \fBservices\fR, \fBprotocols\fR, \fBethers\fR, \fBproject\fR, \fBnetworks\fR, or \fBnetmasks\fR. For each of these databases, \fBgetent\fR uses the appropriate ! library routines described in \fBgetpwnam\fR(3C), \fBgetgrnam\fR(3C), \fBgethostbyaddr\fR(3NSL), \fBgethostbyname\fR(3NSL), \fBgetipnodebyaddr\fR(3SOCKET), \fBgetipnodebyname\fR(3SOCKET), \fBgetservbyname\fR(3SOCKET), \fBgetprotobyname\fR(3SOCKET), \fBethers\fR(3SOCKET), \fBgetprojbyname\fR(3PROJECT) and \fBgetnetbyname\fR(3SOCKET), respectively. --- 19,32 ---- by \fIdatabase\fR. The information generally comes from one or more of the sources that are specified for the \fIdatabase\fR in \fB/etc/nsswitch.conf\fR. .sp .LP \fIdatabase\fR is the name of the database to be examined. This can be ! \fBpasswd\fR, \fBshadow\fR, \fBgroup\fR, \fBhosts\fR, \fBipnodes\fR, \fBservices\fR, \fBprotocols\fR, \fBethers\fR, \fBproject\fR, \fBnetworks\fR, or \fBnetmasks\fR. For each of these databases, \fBgetent\fR uses the appropriate ! library routines described in \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C), \fBgetgrnam\fR(3C), \fBgethostbyaddr\fR(3NSL), \fBgethostbyname\fR(3NSL), \fBgetipnodebyaddr\fR(3SOCKET), \fBgetipnodebyname\fR(3SOCKET), \fBgetservbyname\fR(3SOCKET), \fBgetprotobyname\fR(3SOCKET), \fBethers\fR(3SOCKET), \fBgetprojbyname\fR(3PROJECT) and \fBgetnetbyname\fR(3SOCKET), respectively.
*** 39,49 **** \fBservices\fR. .sp .LP \fBgetent\fR prints out the database entries that match each of the supplied keys, one per line, in the format of the matching administrative file: ! \fBpasswd\fR(4), \fBgroup\fR(4), \fBproject\fR(4), \fBhosts\fR(4), \fBservices\fR(4), \fBprotocols\fR(4), \fBethers\fR(3SOCKET), \fBnetworks\fR(4), or \fBnetmasks\fR(4). If no key is given, all entries returned by the corresponding enumeration library routine, for example, \fBgetpwent()\fR or \fBgethostent()\fR, are printed. Enumeration is not supported on \fBipnodes\fR. --- 39,49 ---- \fBservices\fR. .sp .LP \fBgetent\fR prints out the database entries that match each of the supplied keys, one per line, in the format of the matching administrative file: ! \fBpasswd\fR(4), \fBshadow\fR(4), \fBgroup\fR(4), \fBproject\fR(4), \fBhosts\fR(4), \fBservices\fR(4), \fBprotocols\fR(4), \fBethers\fR(3SOCKET), \fBnetworks\fR(4), or \fBnetmasks\fR(4). If no key is given, all entries returned by the corresponding enumeration library routine, for example, \fBgetpwent()\fR or \fBgethostent()\fR, are printed. Enumeration is not supported on \fBipnodes\fR.
*** 149,158 **** --- 149,167 ---- .RE .sp .ne 2 .na + \fB\fB/etc/shadow\fR\fR + .ad + .RS 22n + shadowed password file + .RE + + .sp + .ne 2 + .na \fB\fB/etc/group\fR\fR .ad .RS 22n group file .RE