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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/getent.1m
          +++ new/usr/src/man/man1m/getent.1m
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  
  15   15  .SH DESCRIPTION
  16   16  .sp
  17   17  .LP
  18   18  \fBgetent\fR gets a list of entries from the administrative database specified
  19   19  by \fIdatabase\fR. The information generally comes from one or more of the
  20   20  sources that are specified for the \fIdatabase\fR in \fB/etc/nsswitch.conf\fR.
  21   21  .sp
  22   22  .LP
  23   23  \fIdatabase\fR is the name of the database to be examined. This can be
  24      -\fBpasswd\fR, \fBgroup\fR, \fBhosts\fR, \fBipnodes\fR, \fBservices\fR,
       24 +\fBpasswd\fR, \fBshadow\fR, \fBgroup\fR, \fBhosts\fR, \fBipnodes\fR, \fBservices\fR,
  25   25  \fBprotocols\fR, \fBethers\fR, \fBproject\fR, \fBnetworks\fR, or
  26   26  \fBnetmasks\fR. For each of these databases, \fBgetent\fR uses the appropriate
  27      -library routines described in \fBgetpwnam\fR(3C), \fBgetgrnam\fR(3C),
       27 +library routines described in \fBgetpwnam\fR(3C), \fBgetspnam\fR(3C), \fBgetgrnam\fR(3C),
  28   28  \fBgethostbyaddr\fR(3NSL), \fBgethostbyname\fR(3NSL),
  29   29  \fBgetipnodebyaddr\fR(3SOCKET), \fBgetipnodebyname\fR(3SOCKET),
  30   30  \fBgetservbyname\fR(3SOCKET), \fBgetprotobyname\fR(3SOCKET),
  31   31  \fBethers\fR(3SOCKET), \fBgetprojbyname\fR(3PROJECT) and
  32   32  \fBgetnetbyname\fR(3SOCKET), respectively.
  33   33  .sp
  34   34  .LP
  35   35  Each \fIkey\fR must be in a format appropriate for searching on the respective
  36   36  database. For example, it can be a \fIusername\fR or \fInumeric-uid\fR for
  37   37  \fBpasswd\fR; \fIhostname\fR or \fIIP\fR \fIaddress\fR for \fBhosts\fR; or
  38   38  \fIservice\fR, \fIservice/protocol\fR, \fIport\fR, or \fIport/proto\fR for
  39   39  \fBservices\fR.
  40   40  .sp
  41   41  .LP
  42   42  \fBgetent\fR prints out the database entries that match each of the supplied
  43   43  keys, one per line, in the format of the matching administrative file:
  44      -\fBpasswd\fR(4), \fBgroup\fR(4), \fBproject\fR(4), \fBhosts\fR(4),
       44 +\fBpasswd\fR(4), \fBshadow\fR(4), \fBgroup\fR(4), \fBproject\fR(4), \fBhosts\fR(4),
  45   45  \fBservices\fR(4), \fBprotocols\fR(4), \fBethers\fR(3SOCKET),
  46   46  \fBnetworks\fR(4), or \fBnetmasks\fR(4). If no key is given, all entries
  47   47  returned by the corresponding enumeration library routine, for example,
  48   48  \fBgetpwent()\fR or \fBgethostent()\fR, are printed. Enumeration is not
  49   49  supported on \fBipnodes\fR.
  50   50  .SS "Key Interpretation for \fBpasswd\fR and \fBgroup\fR Databases"
  51   51  .sp
  52   52  .LP
  53   53  When \fBgetent\fR is invoked with database set to \fBpasswd\fR, each key value
  54   54  is processed as follows:
↓ open down ↓ 89 lines elided ↑ open up ↑
 144  144  .na
 145  145  \fB\fB/etc/passwd\fR\fR
 146  146  .ad
 147  147  .RS 22n
 148  148  password file
 149  149  .RE
 150  150  
 151  151  .sp
 152  152  .ne 2
 153  153  .na
      154 +\fB\fB/etc/shadow\fR\fR
      155 +.ad
      156 +.RS 22n
      157 +shadowed password file
      158 +.RE
      159 +
      160 +.sp
      161 +.ne 2
      162 +.na
 154  163  \fB\fB/etc/group\fR\fR
 155  164  .ad
 156  165  .RS 22n
 157  166  group file
 158  167  .RE
 159  168  
 160  169  .sp
 161  170  .ne 2
 162  171  .na
 163  172  \fB\fB/etc/inet/hosts\fR\fR
↓ open down ↓ 70 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX