NETGROUP(5) COMMAND REFERENCE NETGROUP(5) NAME netgroup - list of network groups DESCRIPTION The command netgroup defines network-wide groups, used for permission checking when doing remote mounts, remote logins, and remote shells. For remote mounts, the information in netgroup is used to classify machines; for remote logins and remote shells, it is used to classify users. Each line of the netgroup file defines a group and has the format groupname member1 member2 .... where memberi is either another group name, or a triple: (hostname, username, domainname) Any of three fields can be empty, in which case it signifies a wildcard. Thus universal (,,) defines a group to which everyone belongs. Field names that begin with something other than a letter, digit or underscore, such as a minus sign ( - ) work in precisely the opposite fashion. For example, consider the following entries: justmachines (analytica,-,sun) justpeople (-,babbage,sun) The machine analytica belongs to the group justmachines in the domain sun, but no users belong to it. Similarly, the user babbage belongs to the group justpeople in the domain sun, but no machines belong to it. Network groups are contained in the Yellow Pages, and are accessed through the files listed. Note that, in each case, domainname is the name of your domain (host). /etc/yp/domainname/netgroup.dir /etc/yp/domainname/netgroup.pag /etc/yp/domainname/netgroup.byuser.dir /etc/yp/domainname/netgroup.byuser.pag /etc/yp/domainname/netgroup.byhost.dir /etc/yp/domainname/netgroup.byhost.pag These files can be created from /etc/netgroup using makedbm(8). FILES /etc/netgroup Printed 5/12/88 1
NETGROUP(5) COMMAND REFERENCE NETGROUP(5) CAVEATS When the netgroup is invalid getnetgrent(3N) does not change the argument to a null pointer; instead, getnetgrent returns 0 indicating end-of-group; setnetgrent(3N) does not give a return value or reset the netgroup pointer to null (no message is given for failure) and will only work properly if domainname(1) is defined, if portmap(8C) is running, and if the Yellow Pages are running and have executed a ypbind(8). SEE ALSO domainname(1), getnetgrent(3), exportfs(8), makedbm(8), ypbind(8), ypserv(8), and ypset(8). Printed 5/12/88 2
%%index%% na:336,85; de:421,2522; fi:2943,97; ca:3448,819; se:4267,341; %%index%%000000000095