netgroup.5yp

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 5YP 代码 · 共 97 行

5YP
97
字号
.\" SCCSID: @(#)netgroup.5yp	8.1	9/11/90.TH netgroup 5yp.SH Namenetgroup \- list of network groups.SH Description.NXR "netgroup file" "format".NXA "exports file" "netgroup file".NXA "exports file" "hosts file".NXA "netgroup file" "getnetgrent subroutine".NXR "network group" "defining"The.PN netgroupfile defines network-wide groupsused for permission checking when doingremote mounts, remote logins, and remote shells.For remote mounts, the information in the .PN netgroupfile is used to classify machines;for remote logins and remote shells,it is used to classify users.Each line of the.PN netgroupfile defines a group and has the following format:.PP.I groupname member1,...,member_n.PPEach member is either another group name or a combinationof the host name, user name, and domain name..PPAny of the three fields can be empty,in which case a wildcard is assumed.For example,to define a group to which everyone belongs, the following entrycould appear in the .PN netgroupfile:.EXuniversal (,,).EE.PPField names that begin with something otherthan a letter, digit, or underscore(such as ``-'') work in the opposite way.For example:.EXjustmachines	(analytica,-,suez)justpeople	(-,babbage,suez).EE.PPThe machine.I analyticabelongs to the group.I justmachinesin the domain.I suez,but no users belong to it.Similarly, the user.I babbagebelongs to the group .I justpeoplein the domain.I suez,but no machines belong to it. .PPNetwork groups are part of the Yellow Pages data baseand are accessed through these files:.PP.nf\f(CW/etc/yp/\fIdomainname\fP/netgroup.dir\f(CW/etc/yp/\fIdomainname\fP/netgroup.pag\f(CW/etc/yp/\fIdomainname\fP/netgroup.byuser.dir\f(CW/etc/yp/\fIdomainname\fP/netgroup.byuser.pag\f(CW/etc/yp/\fIdomainname\fP/netgroup.byhost.dir\f(CW/etc/yp/\fIdomainname\fP/netgroup.byhost.pag.fi.PP\fRThese files can be created from .PN /etc/netgroupusing .MS makedbm 8yp ..SH Files\f(CW/etc/netgroup.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.dir.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.pag.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.byuser.dir.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.byuser.pag.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.byhost.dir.br\f(CW/etc/yp/\fIdomainname\fP/netgroup.byhost.pag.SH See Alsogetnetgrent(3yp), makedbm(8yp), ypserv(8yp)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?