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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man4/netgroup.4.man.txt
          +++ new/usr/src/man/man4/netgroup.4.man.txt
↓ open down ↓ 7 lines elided ↑ open up ↑
   8    8  SYNOPSIS
   9    9         /etc/netgroup
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         A netgroup defines a network-wide group of hosts and users. Use a
  14   14         netgroup to restrict access to shared NFS filesystems and to restrict
  15   15         remote login and shell access.
  16   16  
  17   17  
  18      -       Network groups are stored in a network information service, such as
  19      -       LDAP or NIS, not in a local file.
       18 +       Network groups are usually stored in network information services, such
       19 +       as LDAP, or NIS, but may alternatively be stored in the local
       20 +       /etc/netgroup file.  The netgroup line of the nsswitch.conf(4) file
       21 +       determines which of those sources are used.
  20   22  
  21   23  
  22   24         This manual page describes the format for a file that is used to supply
  23      -       input to a program such as ldapaddent(1M) for LDAP or makedbm(1M) for
  24      -       NIS. These programs build maps or tables used by their corresponding
  25      -       network information services.
       25 +       input to a program such as ldapaddent(1M) for LDAP, or makedbm(1M) for
       26 +       NIS.  The same file format is used in the local /etc/netgroup file.
  26   27  
  27   28  
  28   29         Each line of the file defines the name and membership of a network
  29   30         group. The line should have the format:
  30   31  
  31   32           groupname     member...
  32   33  
  33   34  
  34   35  
  35   36  
↓ open down ↓ 62 lines elided ↑ open up ↑
  98   99         is granted depending only on whether the requesting host is a member of
  99  100         the netgroup. Remote login and shell access can be controlled both on
 100  101         the basis of host and user membership in separate netgroups.
 101  102  
 102  103  FILES
 103  104         /etc/netgroup
 104  105                          Used by a network information service's utility to
 105  106                          construct a map or table that contains netgroup
 106  107                          information. For example, ldapaddent(1M) uses
 107  108                          /etc/netgroup to construct an LDAP container.
      109 +                        Alternatively, the /etc/netgroup file may be used
      110 +                        directly if the files source is specified in
      111 +                        nsswitch.conf(4) for the netgroup database.
 108  112  
 109  113  
 110  114  
 111      -       Note that the netgroup information must always be stored in a network
 112      -       information service, such as LDAP or NIS. The local file is only used
 113      -       to construct a map or table for the network information service. It is
 114      -       never consulted directly.
 115      -
 116  115  SEE ALSO
 117  116         ldapaddent(1M), makedbm(1M), share_nfs(1M), innetgr(3C), hosts(4),
 118  117         hosts.equiv(4), nsswitch.conf(4), passwd(4), shadow(4)
 119  118  
 120  119  NOTES
 121      -       netgroup requires a network information service such as LDAP or NIS.
 122      -
 123      -
 124  120         Applications may make general membership tests using the innetgr()
 125  121         function. See innetgr(3C).
 126  122  
 127  123  
 128  124         Because the "-" character will not match any specific username or
 129  125         hostname, it is commonly used as a placeholder that will match only
 130  126         wildcarded membership queries. So, for example:
 131  127  
 132  128           onlyhosts (host1,-,our.domain) (host2,-,our.domain)
 133  129           onlyusers (-,john,our.domain) (-,linda,our.domain)
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX