Print this page
re #11201 nss: need local netgroup implementation

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man4/netgroup.4
          +++ new/usr/src/man/man4/netgroup.4
   1    1  '\" te
        2 +.\" Copyright 2012 Nexenta Systems, Inc.  All rights reserved.
   2    3  .\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
   3    4  .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4    5  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5    6  .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6    7  .TH NETGROUP 4 "Feb 25, 2017"
   7    8  .SH NAME
   8    9  netgroup \- list of network groups
   9   10  .SH SYNOPSIS
  10   11  .LP
  11   12  .nf
  12   13  \fB/etc/netgroup\fR
  13   14  .fi
  14   15  
  15   16  .SH DESCRIPTION
  16   17  .LP
  17   18  A \fBnetgroup\fR defines a network-wide group of hosts and users. Use a
  18   19  \fBnetgroup\fR to restrict access to shared \fBNFS\fR filesystems and to
  19   20  restrict remote login and shell access.
  20   21  .sp
  21   22  .LP
  22      -Network groups are stored in a network information service, such as
  23      -\fBLDAP\fR or \fBNIS\fR, not in a local file.
       23 +Network groups are usually stored in network information services,
       24 +such as \fBLDAP\fR, or \fBNIS\fR, but may alternatively be stored in
       25 +the local \fB/etc/netgroup\fR file.  The \fBnetgroup\fR line of the
       26 +\fBnsswitch.conf\fR(4) file determines which of those sources are used.
  24   27  .sp
  25   28  .LP
  26   29  This manual page describes the format for a file that is used to supply input
  27      -to a program such as \fBldapaddent\fR(1M) for LDAP or \fBmakedbm\fR(1M) for
  28      -NIS. These programs build maps or tables used by
  29      -their corresponding network information services.
       30 +to a program such as \fBldapaddent\fR(1M) for LDAP, or \fBmakedbm\fR(1M) for
       31 +NIS.  The same file format is used in the local \fB/etc/netgroup\fR file.
  30   32  .sp
  31   33  .LP
  32   34  Each line of the file defines the name and membership of a network group. The
  33   35  line should have the format:
  34   36  .sp
  35   37  .in +2
  36   38  .nf
  37   39  \fIgroupname     member\fR...
  38   40  .fi
  39   41  .in -2
↓ open down ↓ 83 lines elided ↑ open up ↑
 123  125  \fBnetgroup\fR. Remote login and shell access can be controlled both on the
 124  126  basis of host and user membership in separate netgroups.
 125  127  .SH FILES
 126  128  .ne 2
 127  129  .na
 128  130  \fB\fB/etc/netgroup\fR\fR
 129  131  .ad
 130  132  .RS 17n
 131  133  Used by a network information service's utility to construct a map or table
 132  134  that contains \fBnetgroup\fR information. For example, \fBldapaddent\fR(1M)
 133      -uses \fB/etc/netgroup\fR to construct an LDAP container.
      135 +uses \fB/etc/netgroup\fR to construct an LDAP container.  Alternatively,
      136 +the \fB/etc/netgroup\fR file may be used directly if the \fBfiles\fR
      137 +source is specified in \fBnsswitch.conf\fR(4) for the \fBnetgroup\fR
      138 +database.
      139 +
 134  140  .RE
 135  141  
 136      -.sp
 137      -.LP
 138      -Note that the netgroup information must always be stored in a network
 139      -information service, such as \fBLDAP\fR or \fBNIS\fR. The local file is
 140      -only used to construct a map or table for the network information service. It
 141      -is never consulted directly.
 142  142  .SH SEE ALSO
 143  143  .LP
 144  144  \fBldapaddent\fR(1M), \fBmakedbm\fR(1M),
 145  145  \fBshare_nfs\fR(1M), \fBinnetgr\fR(3C), \fBhosts\fR(4), \fBhosts.equiv\fR(4),
 146  146  \fBnsswitch.conf\fR(4), \fBpasswd\fR(4), \fBshadow\fR(4)
 147  147  .SH NOTES
 148  148  .LP
 149      -\fBnetgroup\fR requires a network information service such as \fBLDAP\fR
 150      -or \fBNIS\fR.
 151      -.sp
 152      -.LP
 153  149  Applications may make general membership tests using the \fBinnetgr()\fR
 154  150  function. See \fBinnetgr\fR(3C).
 155  151  .sp
 156  152  .LP
 157  153  Because the "-" character will not match any specific username or hostname, it
 158  154  is commonly used as a placeholder that will match only wildcarded membership
 159  155  queries. So, for example:
 160  156  .sp
 161  157  .in +2
 162  158  .nf
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX