xref: /netbsd-src/share/man/man5/netgroup.5 (revision ce0bb6e8d2e560ecacbe865a848624f94498063b)
1.\"	$NetBSD: netgroup.5,v 1.3 1995/03/18 14:58:34 cgd Exp $
2.\"
3.\" Copyright (c) 1992, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)netgroup.5	8.2 (Berkeley) 12/11/93
35.\"
36.Dd December 11, 1993
37.Dt NETGROUP 5
38.Os
39.Sh NAME
40.Nm netgroup
41.Nd defines network groups
42.Sh SYNOPSIS
43.Nm netgroup
44.Sh DESCRIPTION
45The
46.Nm netgroup
47file
48specifies ``netgroups'', which are sets of
49.Sy (host, user, domain)
50tuples that are to be given similar network access.
51.Pp
52Each line in the file
53consists of a netgroup name followed by a list of the members of the
54netgroup.
55Each member can be either the name of another netgroup or a specification
56of a tuple as follows:
57.Bd -literal -offset indent
58(host, user, domain)
59.Ed
60where the
61.Sy host ,
62.Sy user ,
63and
64.Sy domain
65are character string names for the corresponding component.
66Any of the comma separated fields may be empty to specify a ``wildcard'' value
67or may consist of the string ``-'' to specify ``no valid value''.
68The members of the list may be separated by whitespace;
69the ``\e'' character may be used at the end of a line to specify
70line continuation.
71The functions specified in
72.Xr getnetgrent 3
73should normally be used to access the
74.Nm netgroup
75database.
76.Pp
77These functions operate on the
78.Xr db
79version of the
80.Nm netgroup
81.Nm (netgroup.db)
82file which can be generated using
83.Xr netgroup_mkdb .
84If that file is not present, and the system supports
85.Sy NIS,
86then the
87.Nm netgroup
88.Sy NIS
89maps are used. The
90.Sy NIS
91maps are also used if the
92.Nm netgroup
93file contains a
94.Sy +
95entry.
96.Pp
97Lines that begin with a # are treated as comments.
98.Sh FILES
99.Bl -tag -width /etc/netgroup.db -compact
100.It Pa /etc/netgroup.db
101the netgroup database.
102.El
103.Sh SEE ALSO
104.Xr netgroup_mkdb 8 ,
105.Xr getnetgrent 3 ,
106.Xr exports 5
107.Sh COMPATIBILITY
108The file format is compatible with that of various vendors, however it
109appears that not all vendors use an identical format.
110.Sh BUGS
111The interpretation of access restrictions based on the member tuples of a
112netgroup is left up to the various network applications.
113