1*2a65137fSwiz.\" $NetBSD: netgroup.5,v 1.9 2014/09/19 16:02:58 wiz Exp $ 20114e805Scgd.\" 3625a6892Smycroft.\" Copyright (c) 1992, 1993 4625a6892Smycroft.\" The Regents of the University of California. All rights reserved. 5625a6892Smycroft.\" 6625a6892Smycroft.\" Redistribution and use in source and binary forms, with or without 7625a6892Smycroft.\" modification, are permitted provided that the following conditions 8625a6892Smycroft.\" are met: 9625a6892Smycroft.\" 1. Redistributions of source code must retain the above copyright 10625a6892Smycroft.\" notice, this list of conditions and the following disclaimer. 11625a6892Smycroft.\" 2. Redistributions in binary form must reproduce the above copyright 12625a6892Smycroft.\" notice, this list of conditions and the following disclaimer in the 13625a6892Smycroft.\" documentation and/or other materials provided with the distribution. 14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 15625a6892Smycroft.\" may be used to endorse or promote products derived from this software 16625a6892Smycroft.\" without specific prior written permission. 17625a6892Smycroft.\" 18625a6892Smycroft.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19625a6892Smycroft.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20625a6892Smycroft.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21625a6892Smycroft.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22625a6892Smycroft.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23625a6892Smycroft.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24625a6892Smycroft.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25625a6892Smycroft.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26625a6892Smycroft.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27625a6892Smycroft.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28625a6892Smycroft.\" SUCH DAMAGE. 29625a6892Smycroft.\" 300114e805Scgd.\" @(#)netgroup.5 8.2 (Berkeley) 12/11/93 31625a6892Smycroft.\" 32abda4debSlukem.Dd January 16, 1999 33625a6892Smycroft.Dt NETGROUP 5 34625a6892Smycroft.Os 35625a6892Smycroft.Sh NAME 36625a6892Smycroft.Nm netgroup 37625a6892Smycroft.Nd defines network groups 38625a6892Smycroft.Sh SYNOPSIS 39625a6892Smycroft.Nm netgroup 40625a6892Smycroft.Sh DESCRIPTION 41625a6892SmycroftThe 42625a6892Smycroft.Nm netgroup 43625a6892Smycroftfile 4471e62d7dSlukemspecifies 4571e62d7dSlukem.Dq netgroups , 4671e62d7dSlukemwhich are sets of 47625a6892Smycroft.Sy (host, user, domain) 48625a6892Smycrofttuples that are to be given similar network access. 49625a6892Smycroft.Pp 50625a6892SmycroftEach line in the file 51625a6892Smycroftconsists of a netgroup name followed by a list of the members of the 52625a6892Smycroftnetgroup. 53625a6892SmycroftEach member can be either the name of another netgroup or a specification 54625a6892Smycroftof a tuple as follows: 55625a6892Smycroft.Bd -literal -offset indent 56625a6892Smycroft(host, user, domain) 57625a6892Smycroft.Ed 58053d7e24Stv.Pp 59625a6892Smycroftwhere the 60625a6892Smycroft.Sy host , 61625a6892Smycroft.Sy user , 62625a6892Smycroftand 63625a6892Smycroft.Sy domain 64625a6892Smycroftare character string names for the corresponding component. 6571e62d7dSlukemAny of the comma separated fields may be empty to specify a 6671e62d7dSlukem.Dq wildcard 6771e62d7dSlukemvalue 6871e62d7dSlukemor may consist of the string 6971e62d7dSlukem.Dq Li - 7071e62d7dSlukemto specify 7171e62d7dSlukem.Dq no valid value . 7227015087SchristosThe members of the list may be separated by whitespace; 7371e62d7dSlukemthe 7471e62d7dSlukem.Dq \e 7571e62d7dSlukemcharacter may be used at the end of a line to specify 76625a6892Smycroftline continuation. 77625a6892SmycroftThe functions specified in 78625a6892Smycroft.Xr getnetgrent 3 79625a6892Smycroftshould normally be used to access the 80625a6892Smycroft.Nm netgroup 81625a6892Smycroftdatabase. 82625a6892Smycroft.Pp 83abda4debSlukemIf 84abda4debSlukem.Sq files 85abda4debSlukemis specified for the 86abda4debSlukem.Sq netgroup 87abda4debSlukemdatabase in 88abda4debSlukem.Xr nsswitch.conf 5 , 89abda4debSlukem(or no 90abda4debSlukem.Sq netgroup 91abda4debSlukementry is specified), then these functions operate on the 92fa72f5deSfair.Xr db 3 9327015087Schristosversion of the 9427015087Schristos.Nm netgroup 9527015087Schristos.Nm (netgroup.db) 9627015087Schristosfile which can be generated using 97fa72f5deSfair.Xr netgroup_mkdb 8 . 98abda4debSlukemIf 99abda4debSlukem.Sq nis 100abda4debSlukemis specified then the 101abda4debSlukem.Tn NIS 102abda4debSlukemmaps 103abda4debSlukem.Sq netgroup , 104abda4debSlukem.Sq netgroup.byhost , 105abda4debSlukemand 106abda4debSlukem.Sq netgroup.byuser 107abda4debSlukemare used. 10827015087Schristos.Pp 109625a6892SmycroftLines that begin with a # are treated as comments. 110625a6892Smycroft.Sh FILES 11127015087Schristos.Bl -tag -width /etc/netgroup.db -compact 11227015087Schristos.It Pa /etc/netgroup.db 113625a6892Smycroftthe netgroup database. 114625a6892Smycroft.El 115*2a65137fSwiz.Sh COMPATIBILITY 116*2a65137fSwizThe file format is compatible with that of various vendors, however it 117*2a65137fSwizappears that not all vendors use an identical format. 118625a6892Smycroft.Sh SEE ALSO 119625a6892Smycroft.Xr getnetgrent 3 , 120abda4debSlukem.Xr exports 5 , 121abda4debSlukem.Xr nsswitch.conf 5 , 122abda4debSlukem.Xr netgroup_mkdb 8 123625a6892Smycroft.Sh BUGS 124625a6892SmycroftThe interpretation of access restrictions based on the member tuples of a 125625a6892Smycroftnetgroup is left up to the various network applications. 126